Skip to content

Commit 7536f5a

Browse files
committed
side runner: plz work on windows
1 parent d3da80a commit 7536f5a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/side-runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/side-runner",
3-
"version": "4.0.0-alpha.7",
3+
"version": "4.0.0-alpha.8",
44
"description": "Run Selenium IDE projects in cli",
55
"repository": "https://github.com/SeleniumHQ/selenium-ide",
66
"scripts": {

packages/side-runner/src/bin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import ParseProxy from './proxy'
2828
import { Configuration, ProxyInputOptions, SideRunnerAPI } from './types'
2929
import { spawn } from 'child_process'
3030

31+
const isWindows = os.platform() === 'win32'
32+
3133
const metadata = require('../package.json')
3234

3335
const DEFAULT_TIMEOUT = 15000
@@ -171,8 +173,9 @@ configuration.baseUrl = options.baseUrl
171173

172174
options.debug && console.debug(util.inspect(configuration))
173175

176+
const jestExecutable = isWindows ? 'jest.cmd' : 'jest'
174177
spawn(
175-
path.join(__dirname, '..', 'node_modules', '.bin', 'jest'),
178+
path.join(__dirname, '..', 'node_modules', '.bin', jestExecutable),
176179
[
177180
'--config=' + path.join(__dirname, '..', 'jest.config.js'),
178181
'--maxConcurrency=' + configuration.maxWorkers,

0 commit comments

Comments
 (0)