Skip to content

Commit 7119459

Browse files
authored
Fix coverage reports for typescript
1 parent 7b4f803 commit 7119459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transformers/typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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, {...tsconfig, fileName: filePath})
2020

2121
res.outputText = stripInlineSourceMap(res.outputText)
2222

0 commit comments

Comments
 (0)