Skip to content

Commit f017563

Browse files
committed
fix: add a few more options to support exclude
1 parent 8af71b9 commit f017563

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

task.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ const tasks = {
153153
tempDir: coverageFolder,
154154
reporter: [].concat(reporter), // make sure this is a list
155155
include: nycOptions.include,
156-
exclude: nycOptions.exclude
156+
exclude: nycOptions.exclude,
157+
// from working with TypeScript code seems we need these settings too
158+
excludeAfterRemap: true,
159+
extension: ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx']
157160
}
158161

159162
debug('calling NYC reporter with options %o', nycReportOptions)

0 commit comments

Comments
 (0)