@@ -8,9 +8,10 @@ import chokidar from 'chokidar'
88import ENV from './helpers/env.js'
99import read from './helpers/read.js'
1010
11- // XXX: All the tests in these files are skipped; the tests are too flaky on the CI
11+ // XXX: All the tests in this file are skipped on the CI; too flacky there
12+ const testCb = process . env . CI ? test . cb . skip : test . cb
1213
13- test . cb . skip ( '--watch works' , t => {
14+ testCb ( '--watch works' , t => {
1415 let cp
1516
1617 t . plan ( 2 )
@@ -80,7 +81,7 @@ test.cb.skip('--watch works', t => {
8081 setTimeout ( ( ) => t . end ( 'test timeout' ) , 50000 )
8182} )
8283
83- test . cb . skip ( '--watch postcss.config.js' , t => {
84+ testCb ( '--watch postcss.config.js' , t => {
8485 let cp
8586
8687 t . plan ( 2 )
@@ -160,7 +161,7 @@ test.cb.skip('--watch postcss.config.js', t => {
160161 setTimeout ( ( ) => t . end ( 'test timeout' ) , 50000 )
161162} )
162163
163- test . cb . skip ( '--watch dependencies' , t => {
164+ testCb ( '--watch dependencies' , t => {
164165 let cp
165166
166167 t . plan ( 2 )
@@ -229,7 +230,7 @@ test.cb.skip('--watch dependencies', t => {
229230 setTimeout ( ( ) => t . end ( 'test timeout' ) , 50000 )
230231} )
231232
232- test . cb . skip ( "--watch doesn't exit on CssSyntaxError" , t => {
233+ testCb ( "--watch doesn't exit on CssSyntaxError" , t => {
233234 t . plan ( 0 )
234235
235236 ENV ( '' , [ 'a.css' ] )
0 commit comments