Skip to content

Commit

Permalink
update jest.config.js as needed to work with Jest runner
Browse files Browse the repository at this point in the history
  • Loading branch information
brodybits committed Apr 19, 2021
1 parent 029ec55 commit b572a0f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions jest.config.js
Expand Up @@ -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,
Expand Down

0 comments on commit b572a0f

Please sign in to comment.