@@ -15,18 +15,18 @@ module.exports = (resolve, rootDir, isEjecting) => {
15
15
// Use this instead of `paths.testsSetup` to avoid putting
16
16
// an absolute filename into configuration after ejecting.
17
17
const setupTestsFile = fs . existsSync ( paths . testsSetup )
18
- ? '<rootDir>/src/setupTests.js'
18
+ ? '<rootDir>/www/ src/setupTests.js'
19
19
: undefined ;
20
20
21
21
// TODO: I don't know if it's safe or not to just use / as path separator
22
22
// in Jest configs. We need help from somebody with Windows to determine this.
23
23
const config = {
24
- collectCoverageFrom : [ 'src /**/*.{js,jsx}' ] ,
24
+ collectCoverageFrom : [ 'www /**/*.{js,jsx}' ] ,
25
25
setupFiles : [ 'react-app-polyfill/jsdom' ] ,
26
26
setupTestFrameworkScriptFile : setupTestsFile ,
27
27
testMatch : [
28
- '<rootDir>/src/**/__tests__/**/*.{js,jsx}' ,
29
- '<rootDir>/src/**/?(*.)(spec|test).{js,jsx}' ,
28
+ '<rootDir>/www/ src/**/__tests__/**/*.{js,jsx}' ,
29
+ '<rootDir>/www/ src/**/?(*.)(spec|test).{js,jsx}' ,
30
30
] ,
31
31
testEnvironment : 'jsdom' ,
32
32
testURL : 'http://localhost' ,
0 commit comments