Skip to content

Commit 614465f

Browse files
committed
test: fix on Windows
1 parent 0a0387a commit 614465f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"which": "^4.0.0"
4444
},
4545
"devDependencies": {
46+
"is-windows": "^1.0.2",
4647
"nyc": "15.1.0",
4748
"sinon": "16.1.0",
4849
"standard": "17.1.0",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const test = require('tap').test
44
const sinon = require('sinon')
55
const lifecycle = require('../index.js')
66
const path = require('path')
7+
const isWindows = require('is-windows')
78

89
function noop () {}
910

@@ -196,6 +197,10 @@ test('throw error signal kills child', async function (t) {
196197
})
197198

198199
test('no error on INT signal from child', async function (t) {
200+
if (isWindows()) {
201+
// On Windows there is no way to get the INT signal
202+
return
203+
}
199204
const fixture = path.join(__dirname, 'fixtures', 'count-to-10')
200205

201206
const verbose = sinon.spy()

0 commit comments

Comments
 (0)