From 9c7f8bb84e5c54a8908f158678078c61a0c568fd Mon Sep 17 00:00:00 2001 From: James Monger Date: Tue, 6 Sep 2022 00:14:32 +0100 Subject: [PATCH] chore: set jest to only run `**/*.test.ts` files Jest was running compiled test files in the dist folder These would get stale --- jest.config.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 6c2750b9a..50d8c28f5 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -153,10 +153,9 @@ export default { // testLocationInResults: false, // The glob patterns Jest uses to detect test files - // testMatch: [ - // "**/__tests__/**/*.[jt]s?(x)", - // "**/?(*.)+(spec|test).[tj]s?(x)" - // ], + testMatch: [ + "**/*.test.ts" + ], // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped // testPathIgnorePatterns: [