Skip to content

Commit e4002b5

Browse files
committed
Allow watch tests to be skip
1 parent 7b7b2cd commit e4002b5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/WatchDetection.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ const MemoryFs = require("memory-fs");
99
const webpack = require("../");
1010

1111
describe("WatchDetection", () => {
12+
if(process.env.NO_WATCH_TESTS) {
13+
it("long running tests excluded");
14+
return;
15+
}
16+
1217
for(let changeTimeout = 0; changeTimeout < 100; changeTimeout += 10) {
1318
createTestCase(changeTimeout);
1419
}

test/WatchTestCases.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ function remove(src) {
4747
}
4848

4949
describe("WatchTestCases", () => {
50+
if(process.env.NO_WATCH_TESTS) {
51+
it("long running tests excluded");
52+
return;
53+
}
54+
5055
const casesPath = path.join(__dirname, "watchCases");
5156
let categories = fs.readdirSync(casesPath);
5257

test/WatcherEvents.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ const createMultiCompiler = () => {
2727
};
2828

2929
describe("WatcherEvents", function() {
30+
if(process.env.NO_WATCH_TESTS) {
31+
it("long running tests excluded");
32+
return;
33+
}
34+
3035
this.timeout(10000);
3136

3237
it("should emit 'watch-close' when using single-compiler mode and the compiler is not running", function(done) {

0 commit comments

Comments
 (0)