tweak: jest loads .mjs last

This resolves an issue that caused jest tests to fail when depending on
a module that ships .mjs files (encountered via a transitive dep of
react-markdown).

See https://github.com/facebook/create-react-app/pull/4085 for context.

Test plan: I have a future commit which tests a file that depends on
react-markdown. The tests fail to run before this commit, and they run
without issue afterwards.
This commit is contained in:
Dandelion Mané 2019-07-14 20:05:49 +01:00
parent 8ae76f122e
commit 493d7332c6
1 changed files with 2 additions and 2 deletions

View File

@ -124,12 +124,12 @@
},
"moduleFileExtensions": [
"web.js",
"mjs",
"js",
"json",
"web.jsx",
"jsx",
"node"
"node",
"mjs"
]
},
"files": [