mirror of https://github.com/zulip/zulip.git
coverage: Get Istanbul to recognise typescript modules.
This commit is contained in:
parent
19b96b4e0b
commit
bec31c6791
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue