From a4f0ed7c94b1e5d75810abe179fa4f110caee663 Mon Sep 17 00:00:00 2001 From: endiliey Date: Sat, 11 Aug 2018 14:23:11 +0800 Subject: [PATCH] test: more timeout for webpack compile test --- test/webpack/index.test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/webpack/index.test.js b/test/webpack/index.test.js index 568e3126af..d86142588c 100644 --- a/test/webpack/index.test.js +++ b/test/webpack/index.test.js @@ -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); });