Skip to content

Commit

Permalink
Add “node” to Jest's moduleFileExtensions
Browse files Browse the repository at this point in the history
This is the same issue documented in react-script PR #2738 (facebook/create-react-app#2738), which has already been merged.
  • Loading branch information
connectdotz committed Aug 30, 2017
1 parent 142dfe4 commit 5261309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = (resolve, rootDir) => {
'web.jsx',
'jsx',
'json',
'node',
],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.ts?(x)',
Expand All @@ -59,7 +60,7 @@ module.exports = (resolve, rootDir) => {
'ts-jest': {
tsConfigFile: paths.appTsTestConfig,
},
}
},
};
if (rootDir) {
config.rootDir = rootDir;
Expand Down

0 comments on commit 5261309

Please sign in to comment.