Closed krishnabrq closed 3 weeks ago
It seems that it failed to load sourcemap files.
try debug
to show error details
[
'jest-monocart-coverage',
{
reports: [['html'], ['cobertura'], ['console-details']],
logging: "debug",
outputDir: './coverage',
},
],
Or provide a minimal reproduction repo.
Thanks for pointing out the issue. Changing the following in tsconfig.json
worked for me:
{
"compilerOptions": {
...
- "sourceMap": false,
- "inlineSourceMap": true,
+ "sourceMap": true,
+ "inlineSourceMap": false,
...
},
"include": ["src/", "lib/"],
"exclude": ["node_modules/", "build/"]
}
I am having a TypeScript project, with following
jest.config.mjs
:When I am running the tests with
jest --coverage
, the file contents are compiled JS, not TS. How can I have them as actual TS content?Example:
coverageReporters: ['html']
: