coverage: Get Istanbul to recognise typescript modules.

This commit is contained in:
Thomas Ip 2019-03-27 17:54:16 +08:00 committed by Tim Abbott
parent 19b96b4e0b
commit bec31c6791
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,8 @@ if options.coverage:
coverage_lcov_file = os.path.join(coverage_dir, 'lcov.info')
nyc = os.path.join(ROOT_DIR, 'node_modules/.bin/nyc')
command = [nyc, '--report-dir', coverage_dir]
command = [nyc, '--extension', '.ts']
command += ['--report-dir', coverage_dir]
command += ['--temp-directory', coverage_dir, '-r=text-summary']
command += node_tests_cmd
command += ['&&', 'nyc', 'report', '-r=lcov', '-r=json']