npm install jest-sourcemapsThis package contains a few utilities to add source map support
to jest. To use it you must:
* install: npm install jest-sourcemaps
* override the test Environment: Add "testEnvironment": or
"jest-sourcemaps/lib/jsdom-env""testEnvironment": to your jest config in your
"jest-sourcemaps/lib/node-env"
package.json.
* replace babel-jest: Use the transformer here instead by adding
"\\.jsx?$": "jest-sourcemaps/lib/transformer.js" to your
jest.transform config.
* add the source-map-support hook by either setting
"setupTestFrameworkScriptFile": in your jest config, or by
"jest-sourcemaps/lib/testEnvSetup.js"
requiring the module from your existing setup file