test(ci): make the child process windoze friendly

This commit is contained in:
izzy lyseggen
2020-08-21 09:54:18 +01:00
parent 1ded3a2a76
commit 773f86dcdc
+1 -1
View File
@@ -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}` )