diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index e2e2f65a4f3..0b3836f9aa7 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@trunkclub/build", - "version": "6.0.0", + "version": "6.1.0", "upstream-version": "0.8.4", "description": "Configuration and scripts for Create React App. Fork maintained by Trunk Club", "repository": "trunkclub/create-react-app", diff --git a/packages/react-scripts/utils/createJestConfig.js b/packages/react-scripts/utils/createJestConfig.js index 863ae27e7b9..e43207e3c04 100644 --- a/packages/react-scripts/utils/createJestConfig.js +++ b/packages/react-scripts/utils/createJestConfig.js @@ -20,7 +20,7 @@ module.exports = (resolve, rootDir, isEjecting) => { // TODO: I don't know if it's safe or not to just use / as path separator // in Jest configs. We need help from somebody with Windows to determine this. const config = { - testPathDirs: [ 'spec' ], + testPathDirs: [ 'spec', 'src' ], testRegex: '.*spec\\.(es6|js)$', moduleDirectories: [ 'src', 'node_modules' ], moduleFileExtensions: [ 'js', 'json', 'es6', 'jsx' ],