Skip to content

Commit aa6edd1

Browse files
committed
more timeouts
1 parent 3696430 commit aa6edd1

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

test/Errors.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const webpack = require("../lib/webpack");
88
const base = path.join(__dirname, "fixtures", "errors");
99

1010
describe("Errors", () => {
11+
jest.setTimeout(20000);
12+
1113
function customOutputFilesystem(c) {
1214
const files = {};
1315
c.outputFileSystem = {

test/HotTestCases.test.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,15 @@ describe("HotTestCases", () => {
177177
if (exportedTests.length < 1)
178178
return done(new Error("No tests exported by test case"));
179179

180-
const asyncSuite = describe(`HotTestCases ${category.name} ${testName} exported tests`, () => {
181-
exportedTests.forEach(
182-
({ title, fn, timeout }) =>
183-
fn
184-
? fit(title, fn, timeout)
185-
: fit(title, () => {}).pend("Skipped")
186-
);
180+
const asyncSuite = describe(`HotTestCases ${
181+
category.name
182+
} ${testName} exported tests`, () => {
183+
exportedTests.forEach(({ title, fn, timeout }) => {
184+
jest.setTimeout(10000);
185+
return fn
186+
? fit(title, fn, timeout)
187+
: fit(title, () => {}).pend("Skipped");
188+
});
187189
});
188190
// workaround for jest running clearSpies on the wrong suite (invoked by clearResourcesForRunnable)
189191
asyncSuite.disabled = true;

test/MultiCompiler.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const createMultiCompiler = () => {
2121
};
2222

2323
describe("MultiCompiler", function() {
24+
jest.setTimeout(20000);
25+
2426
it("should trigger 'run' for each child compiler", done => {
2527
const compiler = createMultiCompiler();
2628
let called = 0;

0 commit comments

Comments
 (0)