Skip to content

Commit

Permalink
migrate: cypress@10
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Aug 30, 2022
1 parent 1aa9f52 commit a2d2a55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 2 additions & 6 deletions launcher.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
const cypress = require('cypress');
const helpers = require('./helpers');
const synpressConfigPath = `${helpers.getSynpressPath()}/synpress.json`;
const synpressConfigPath = `${helpers.getSynpressPath()}/synpress.config.js`;

process.env.CYPRESS_REMOTE_DEBUGGING_PORT = 9222;

const fixturesFolder = `${helpers.getSynpressPath()}/fixtures`;
const pluginsFile = `${helpers.getSynpressPath()}/plugins/index.js`;
const supportFile = `${helpers.getSynpressPath()}/support/index.js`;

const defaultConfig = `fixturesFolder=${fixturesFolder},pluginsFile=${pluginsFile},supportFile=${supportFile}`;
const defaultConfig = ``;

const defaultArguments = [
'cypress',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"release:patch": "release-it patch --disable-metrics",
"update:deps": "ncu -u -x 'node-fetch eslint' && npm install --legacy-peer-deps",
"start:server": "serve tests/test-dapp -p 3000",
"test:e2e": "start-server-and-test 'npm run start:server' http-get://localhost:3000 'SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=tests/e2e/config.json'",
"test:e2e": "start-server-and-test 'npm run start:server' http-get://localhost:3000 'SYNPRESS_LOCAL_TEST=true node synpress.js run --configFile=synpress.config.js'",
"test:e2e:ci": "start-server-and-test 'npm run start:server' http-get://localhost:3000 'SYNPRESS_LOCAL_TEST=true node synpress.js run --group smoke-tests --record'"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ module.exports = (on, config) => {
});

if (process.env.BASE_URL) {
config.baseUrl = process.env.BASE_URL;
config.e2e.baseUrl = process.env.BASE_URL;
config.component.baseUrl = process.env.BASE_URL;
}

if (process.env.CI) {
Expand Down

0 comments on commit a2d2a55

Please sign in to comment.