From bf0873cd854c9bd7fe3bc6e27cae85b7de4ef795 Mon Sep 17 00:00:00 2001 From: Dave Gramlich Date: Fri, 23 Sep 2016 13:18:27 -0400 Subject: [PATCH] testing: set env var in node for windows testing --- scripts/helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/helpers.js b/scripts/helpers.js index 7f7d1646eff..7fca63f4661 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -177,7 +177,9 @@ Module.prototype.runUnitTests = function() { * Runs snippet tests for this module. */ Module.prototype.runSnippetTests = function() { - run(['TEST_MODULE=' + this.name, 'mocha test/docs.js'], { cwd: ROOT_DIR }); + process.env.TEST_MODULE = this.name; + run('mocha test/docs.js', { cwd: ROOT_DIR }); + delete process.env.TEST_MODULE; }; /**