Skip to content

Commit

Permalink
Run watch tests locally, but not on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Jan 15, 2019
1 parent 79e192b commit 938e1ef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import chokidar from 'chokidar'
import ENV from './helpers/env.js'
import read from './helpers/read.js'

// XXX: All the tests in these files are skipped; the tests are too flaky on the CI
// XXX: All the tests in this file are skipped on the CI; too flacky there
const testCb = process.env.CI ? test.cb.skip : test.cb

test.cb.skip('--watch works', t => {
testCb('--watch works', t => {
let cp

t.plan(2)
Expand Down Expand Up @@ -80,7 +81,7 @@ test.cb.skip('--watch works', t => {
setTimeout(() => t.end('test timeout'), 50000)
})

test.cb.skip('--watch postcss.config.js', t => {
testCb('--watch postcss.config.js', t => {
let cp

t.plan(2)
Expand Down Expand Up @@ -160,7 +161,7 @@ test.cb.skip('--watch postcss.config.js', t => {
setTimeout(() => t.end('test timeout'), 50000)
})

test.cb.skip('--watch dependencies', t => {
testCb('--watch dependencies', t => {
let cp

t.plan(2)
Expand Down Expand Up @@ -229,7 +230,7 @@ test.cb.skip('--watch dependencies', t => {
setTimeout(() => t.end('test timeout'), 50000)
})

test.cb.skip("--watch doesn't exit on CssSyntaxError", t => {
testCb("--watch doesn't exit on CssSyntaxError", t => {
t.plan(0)

ENV('', ['a.css'])
Expand Down

0 comments on commit 938e1ef

Please sign in to comment.