Browse Source

add home.e2e.js timeout

陈帅 7 years atrás
parent
commit
2cc3e8460a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/e2e/home.e2e.js

+ 3 - 0
src/e2e/home.e2e.js

@@ -3,6 +3,9 @@ import puppeteer from 'puppeteer';
 const BASE_URL = `http://localhost:${process.env.PORT || 8000}`;
 
 describe('Homepage', () => {
+  beforeAll(async () => {
+    jest.setTimeout(1000000);
+  });
   it('it should have logo text', async () => {
     const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
     const page = await browser.newPage();