Skip to content

Commit edf5094

Browse files
committed
Try watch tests on Windows
1 parent 791cba6 commit edf5094

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

‎test/watch.js‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ import ENV from './helpers/env.js'
99
import read from './helpers/read.js'
1010
import tmp from './helpers/tmp.js'
1111

12-
// XXX: All the tests in this file are skipped on the Windows CI; too flacky there
13-
const testCb =
14-
process.env.CI && process.platform === 'win32' ? test.cb.skip : test.cb
15-
16-
testCb('--watch works', (t) => {
12+
test.cb('--watch works', (t) => {
1713
let cp
1814

1915
t.plan(2)
@@ -85,7 +81,7 @@ testCb('--watch works', (t) => {
8581
.catch(t.end)
8682
})
8783

88-
testCb('--watch dependencies', (t) => {
84+
test.cb('--watch dependencies', (t) => {
8985
let cp
9086

9187
t.plan(2)
@@ -159,7 +155,7 @@ testCb('--watch dependencies', (t) => {
159155
})
160156

161157
// Doesn't work on CI for some reason
162-
testCb("--watch doesn't exit on CssSyntaxError", (t) => {
158+
test.cb("--watch doesn't exit on CssSyntaxError", (t) => {
163159
t.plan(0)
164160

165161
ENV('', ['a.css'])
@@ -209,7 +205,7 @@ testCb("--watch doesn't exit on CssSyntaxError", (t) => {
209205
.catch(t.end)
210206
})
211207

212-
testCb('--watch does exit on closing stdin (Ctrl-D/EOF)', (t) => {
208+
test.cb('--watch does exit on closing stdin (Ctrl-D/EOF)', (t) => {
213209
t.plan(1)
214210

215211
const cp = spawn(
@@ -232,7 +228,7 @@ testCb('--watch does exit on closing stdin (Ctrl-D/EOF)', (t) => {
232228
cp.stdin.end()
233229
})
234230

235-
testCb('--watch watches dependencies', (t) => {
231+
test.cb('--watch watches dependencies', (t) => {
236232
let cp
237233

238234
t.plan(2)
@@ -320,7 +316,7 @@ testCb('--watch watches dependencies', (t) => {
320316
})
321317
})
322318

323-
testCb('--watch watches directory dependencies', (t) => {
319+
test.cb('--watch watches directory dependencies', (t) => {
324320
let cp
325321

326322
t.plan(2)
@@ -417,7 +413,7 @@ testCb('--watch watches directory dependencies', (t) => {
417413
)
418414
})
419415

420-
testCb(
416+
test.cb(
421417
'--watch applies glob on dir-dependency (and excludes non matching files)',
422418
(t) => {
423419
let cp

0 commit comments

Comments
 (0)