From efee29d3423e58500b790298078265c7ed2feb78 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sun, 26 May 2019 13:21:01 -0700 Subject: [PATCH] Quote test paths --- bin/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/test.js b/bin/test.js index 42e1a473..0f26965b 100644 --- a/bin/test.js +++ b/bin/test.js @@ -10,13 +10,14 @@ const path = require('path'); const env = { ...process.env }; env.NODE_PATH = path.resolve(__dirname, '../out'); -const args = [ +const testPaths = [ './out/*test.js', './out/**/*test.js', './out/*integration.js', './out/**/*integration.js', './lib/**/*test.js' ]; +const args = testPaths.map(p => `'${p}'`); cp.spawnSync(path.resolve(__dirname, '../node_modules/.bin/mocha'), args, { cwd: path.resolve(__dirname, '..'),