mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-30 14:14:17 +00:00
test: more timeout for webpack compile test
This commit is contained in:
parent
0f28b6f311
commit
a4f0ed7c94
|
|
@ -16,31 +16,33 @@ function compile(config) {
|
|||
}
|
||||
|
||||
describe('webpack', () => {
|
||||
const timeOut = 10000; // 10 seconds
|
||||
|
||||
test('dev simple', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('simple');
|
||||
const config = createDevConfig(props).toConfig();
|
||||
return expect(compile(config)).resolves.toBe('Compiled successfully');
|
||||
});
|
||||
}, timeOut);
|
||||
|
||||
test('dev custom', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('custom');
|
||||
const config = createDevConfig(props).toConfig();
|
||||
return expect(compile(config)).resolves.toBe('Compiled successfully');
|
||||
});
|
||||
}, timeOut);
|
||||
|
||||
test('prod simple', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('simple');
|
||||
const config = createProdConfig(props).toConfig();
|
||||
return expect(compile(config)).resolves.toBe('Compiled successfully');
|
||||
});
|
||||
}, timeOut);
|
||||
|
||||
test('prod custom', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('custom');
|
||||
const config = createProdConfig(props).toConfig();
|
||||
return expect(compile(config)).resolves.toBe('Compiled successfully');
|
||||
});
|
||||
}, timeOut);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue