Created
March 5, 2023 18:26
-
-
Save heddendorp/3ef3433c4e62adf936b84f79770f348e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From f7c7a7b994a2b8eff89cb2c070dee956445c4193 Mon Sep 17 00:00:00 2001 | |
| From: Lukas Heddendorp <lu.heddendorp@gmail.com> | |
| Date: Sun, 5 Mar 2023 19:25:33 +0100 | |
| Subject: [PATCH] Add flake detection plugin | |
| --- | |
| front/cypress/cypress.config.js | 1 + | |
| front/package.json | 2 +- | |
| server/package.json | 2 +- | |
| 3 files changed, 3 insertions(+), 2 deletions(-) | |
| diff --git a/front/cypress/cypress.config.js b/front/cypress/cypress.config.js | |
| index d136b9a2..acbebd50 100644 | |
| --- a/front/cypress/cypress.config.js | |
| +++ b/front/cypress/cypress.config.js | |
| @@ -19,6 +19,7 @@ module.exports = defineConfig({ | |
| return value === undefined ? null : value; | |
| } | |
| }); | |
| + require('@heddendorp/per-test-v8-cov/plugin')(on, config); | |
| // Load NODE env variables | |
| const language = process.env.LANGUAGE || 'en'; | |
| diff --git a/front/package.json b/front/package.json | |
| index 34feb404..dede8a09 100644 | |
| --- a/front/package.json | |
| +++ b/front/package.json | |
| @@ -22,7 +22,7 @@ | |
| "test": "jest --coverage", | |
| "start:cypress": "cross-env DEMO_MODE=false NODE_OPTIONS=--openssl-legacy-provider WEBSOCKET_URL=ws://localhost:1443 LOCAL_API_URL=http://localhost:1443 npm start", | |
| "cypress:open": "cypress open --config-file cypress/cypress.config.js", | |
| - "cypress:run": "cypress run --config-file cypress/cypress.config.js" | |
| + "cypress:run": "cross-env ELECTRON_EXTRA_LAUNCH_ARGS=--remote-debugging-port=40500 DEBUG=heddendorp:* cypress run --config-file cypress/cypress.config.js" | |
| }, | |
| "devDependencies": { | |
| "@relative-ci/agent": "^2.0.0", | |
| diff --git a/server/package.json b/server/package.json | |
| index 5f195450..3c299a51 100644 | |
| --- a/server/package.json | |
| +++ b/server/package.json | |
| @@ -29,7 +29,7 @@ | |
| "generate-apidoc": "apidoc -i api/ -o apidoc", | |
| "generate-jsdoc": "jsdoc lib/**/*.js services/**/*.js -d jsdoc", | |
| "cypress": "npm run cypress:clean && npm run cypress:start", | |
| - "cypress:start": "cross-env SQLITE_FILE_PATH=./gladys-cypress.db node index.js", | |
| + "cypress:start": "cross-env SQLITE_FILE_PATH=./gladys-cypress.db node --inspect=9222 index.js", | |
| "cypress:clean": "npx rimraf ./gladys-cypress.db*" | |
| }, | |
| "author": "Pierre-Gilles Leymarie", | |
| -- | |
| 2.25.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment