Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit b93a7d9

Browse files
authored
Enable colocation of tests (#81)
* Enable colocation of tests
1 parent c14b339 commit b93a7d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trunkclub/build",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"upstream-version": "0.8.4",
55
"description": "Configuration and scripts for Create React App. Fork maintained by Trunk Club",
66
"repository": "trunkclub/create-react-app",

packages/react-scripts/utils/createJestConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
2020
// TODO: I don't know if it's safe or not to just use / as path separator
2121
// in Jest configs. We need help from somebody with Windows to determine this.
2222
const config = {
23-
testPathDirs: [ 'spec' ],
23+
testPathDirs: [ 'spec', 'src' ],
2424
testRegex: '.*spec\\.(es6|js)$',
2525
moduleDirectories: [ 'src', 'node_modules' ],
2626
moduleFileExtensions: [ 'js', 'json', 'es6', 'jsx' ],

0 commit comments

Comments
 (0)