Skip to content

Commit 5261309

Browse files
committed
Add “node” to Jest's moduleFileExtensions
This is the same issue documented in react-script PR #2738 (facebook/create-react-app#2738), which has already been merged.
1 parent 142dfe4 commit 5261309

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-scripts/scripts/utils/createJestConfig.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module.exports = (resolve, rootDir) => {
3737
'web.jsx',
3838
'jsx',
3939
'json',
40+
'node',
4041
],
4142
testMatch: [
4243
'<rootDir>/src/**/__tests__/**/*.ts?(x)',
@@ -59,7 +60,7 @@ module.exports = (resolve, rootDir) => {
5960
'ts-jest': {
6061
tsConfigFile: paths.appTsTestConfig,
6162
},
62-
}
63+
},
6364
};
6465
if (rootDir) {
6566
config.rootDir = rootDir;

0 commit comments

Comments
 (0)