Skip to content

Commit

Permalink
test: fix on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Oct 27, 2023
1 parent 0a0387a commit 614465f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"which": "^4.0.0"
},
"devDependencies": {
"is-windows": "^1.0.2",
"nyc": "15.1.0",
"sinon": "16.1.0",
"standard": "17.1.0",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const test = require('tap').test
const sinon = require('sinon')
const lifecycle = require('../index.js')
const path = require('path')
const isWindows = require('is-windows')

function noop () {}

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

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

const verbose = sinon.spy()
Expand Down

0 comments on commit 614465f

Please sign in to comment.