Skip to content

Commit b2e1775

Browse files
authored
Skip watch tests on Node v20 on darwin, unskip them on v22 (#129)
* Skip watch tests Signed-off-by: Matteo Collina <[email protected]> * add node 23 Signed-off-by: Matteo Collina <[email protected]> --------- Signed-off-by: Matteo Collina <[email protected]>
1 parent 367fede commit b2e1775

4 files changed

Lines changed: 10 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [18.x, 20.x, 21.x, 22.x]
19+
node-version: [18.x, 20.x, 21.x, 22.x, 23.x]
2020
os: [ubuntu-latest, windows-latest]
2121
exclude:
2222
- os: windows-latest

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@sinonjs/fake-timers": "^13.0.2",
2727
"@types/node": "^22.2.0",
2828
"desm": "^1.3.0",
29+
"semver": "^7.6.3",
2930
"snazzy": "^9.0.0",
3031
"standard": "^17.1.0",
3132
"typescript": "^5.3.2"

test/watch.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { join } from 'desm'
55
import { mkdtemp, cp, writeFile, rm } from 'node:fs/promises'
66
import path from 'node:path'
77
import { once } from 'node:events'
8+
import semver from 'semver'
89

9-
// These tests are currently broken on node v22
10-
const skip = process.platform === 'darwin' && process.version.startsWith('v22')
10+
// These tests are currently broken on some node versions
11+
const skip = process.platform === 'darwin' && semver.satisfies(process.version, '>=20.16.0 <22.10.0')
1112

1213
test('watch', { skip }, async (t) => {
1314
const { strictEqual, completed, match } = tspl(t, { plan: 3 })

0 commit comments

Comments
 (0)