We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c5483 commit d279aa0Copy full SHA for d279aa0
scripts/utils/createJestConfig.js
@@ -15,7 +15,9 @@ const paths = require('../../config/paths');
15
module.exports = (resolve, rootDir) => {
16
const setupFiles = [resolve('config/polyfills.js')];
17
if (pathExists.sync(paths.testsSetup)) {
18
- setupFiles.push(paths.testsSetup);
+ // Use this instead of `paths.testsSetup` to avoid putting
19
+ // an absolute filename into configuration after ejecting.
20
+ setupFiles.push('<rootDir>/src/setupTests.js');
21
}
22
23
const config = {
0 commit comments