From 7820b207e123babd0bda0b4871790f2ea6b36b01 Mon Sep 17 00:00:00 2001 From: Matt Olson Date: Fri, 28 Jun 2019 23:52:09 -0700 Subject: [PATCH] Use istanbul/lib/cli.js instead of node_modules/.bin/istanbul Due to the way, "bin"-files are distributed into the node_modules/.bin directory on Windows, the task "test:cov" did not work on Windows. This commit uses the node-script directly. --- tasks/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/test.js b/tasks/test.js index 3ddbf683..b5c88ad0 100644 --- a/tasks/test.js +++ b/tasks/test.js @@ -41,7 +41,7 @@ module.exports = function(grunt) { grunt.registerTask('test:cov', function() { var done = this.async(); - var runner = childProcess.fork('node_modules/.bin/istanbul', ['cover', '--', './spec/env/runner.js'], {stdio: 'inherit'}); + var runner = childProcess.fork('node_modules/istanbul/lib/cli.js', ['cover', '--source-map', '--', './spec/env/runner.js'], {stdio: 'inherit'}); runner.on('close', function(code) { if (code != 0) { grunt.fatal(code + ' tests failed');