mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user