From 3ee2c7a12f3c89949606854165823c0de9406415 Mon Sep 17 00:00:00 2001 From: sergiollende Date: Sun, 28 Apr 2024 14:55:57 +0200 Subject: [PATCH] More timeout and config change --- webapp/e2e/jest.config.js | 2 +- webapp/package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/webapp/e2e/jest.config.js b/webapp/e2e/jest.config.js index 6adbaf0..5dd2b70 100644 --- a/webapp/e2e/jest.config.js +++ b/webapp/e2e/jest.config.js @@ -1,5 +1,5 @@ module.exports = { testMatch: ["**/steps/*.js"], - testTimeout: 50000, + testTimeout: 100000, setupFilesAfterEnv: ["expect-puppeteer"] } \ No newline at end of file diff --git a/webapp/package.json b/webapp/package.json index 644ffdb..5c1a50b 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -37,8 +37,7 @@ "build": "set PORT=80 && set HTTP=true && react-scripts build", "prod": "serve -s build", "test": "react-scripts test --transformIgnorePatterns 'node_modules/(?!axios)/'", - "test:e2e": "cd ../webapp && npm run build && npm run test:e2eci", - "test:e2eci": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=80 npm run rune2etests", + "test:e2e": "cross-env START_SERVER_AND_TEST_INSECURE=1 PORT=80 npm run rune2etests", "rune2etests": "start-server-and-test 'node e2e/test-environment-setup.js' http://localhost:8000/health prod 80 \"cd e2e && jest\"", "eject": "react-scripts eject" },