From b572a0f526486e7e0d83bc4fad8d8d1323edfa3f Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Sun, 18 Apr 2021 20:55:07 -0400 Subject: [PATCH] update jest.config.js as needed to work with Jest runner --- jest.config.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/jest.config.js b/jest.config.js index a5bc07829..c72c793ef 100644 --- a/jest.config.js +++ b/jest.config.js @@ -143,21 +143,24 @@ module.exports = { // Adds a location field to test results // testLocationInResults: false, + // TBD ENABLED to work with Stryker Jest runner: // The glob patterns Jest uses to detect test files - // testMatch: [ - // "**/__tests__/**/*.[jt]s?(x)", - // "**/?(*.)+(spec|test).[tj]s?(x)" - // ], + testMatch: [ + "**/__tests__/**/*.[jt]s?(x)", + "**/?(*.)+(spec|test).[tj]s?(x)" + ], // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped - // testPathIgnorePatterns: [ + testPathIgnorePatterns: [ // "/node_modules/" - // ], + "/test/test.js" + ], + // TBD NOT WORKING with Stryker Jest runner: // The regexp pattern or array of patterns that Jest uses to detect test files - testRegex: [ - /\.test\.js?$/ - ], + // testRegex: [ + // /\.test\.js?$/ + // ], // This option allows the use of a custom results processor // testResultsProcessor: undefined,