tests: Compile Handlebars templates with source maps.

This allows us to collect coverage for Handlebars templates, and also
improves the readability of Handlebars-related stack traces.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-10 03:32:56 -08:00
committed by showell
parent 36a8e61e67
commit 4889a0486d
2 changed files with 48 additions and 42 deletions

View File

@@ -202,7 +202,7 @@ def run_tests_via_node_js() -> int:
coverage_lcov_file = os.path.join(coverage_dir, 'lcov.info')
nyc = os.path.join(ROOT_DIR, 'node_modules/.bin/nyc')
command = [nyc, '--extension', '.ts']
command = [nyc, '--extension', '.hbs', '--extension', '.ts']
command += ['--report-dir', coverage_dir]
command += ['--temp-directory', coverage_dir, '-r=text-summary']
command += node_tests_cmd