From 773f86dcdc738d649cdaee79ff0ec66dbd112c9e Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Fri, 21 Aug 2020 09:54:18 +0100 Subject: [PATCH] test(ci): make the child process windoze friendly --- modules/core/tests/graphSubs.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/tests/graphSubs.spec.js b/modules/core/tests/graphSubs.spec.js index e3f11f805..f5339d003 100644 --- a/modules/core/tests/graphSubs.spec.js +++ b/modules/core/tests/graphSubs.spec.js @@ -56,7 +56,7 @@ describe( 'GraphQL API Subscriptions', ( ) => { await knex.migrate.latest( ) const childProcess = require( 'child_process' ) - serverProcess = childProcess.spawn( "npm", [ "run", "dev:server:test" ], { cwd: `${appRoot}` } ) + serverProcess = childProcess.spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ["run", "dev:server:test"], { cwd: `${appRoot}` }) serverProcess.stdout.on( 'data', data => { console.log( `stdout: ${data}` )