Skip to content

Commit 304d797

Browse files
committed
Fix coverage reports for typescript
1 parent 7b4f803 commit 304d797

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/transformers/typescript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ module.exports = {
1616
const tsconfig = getTsJestConfig(config)
1717
const babelOptions = getBabelOptions(filePath)
1818

19-
const res = typescript.transpileModule(scriptContent, tsconfig)
19+
const res = typescript.transpileModule(scriptContent, {
20+
...tsconfig,
21+
fileName: filePath
22+
})
2023

2124
res.outputText = stripInlineSourceMap(res.outputText)
2225

0 commit comments

Comments
 (0)