Skip to content

Commit 313566a

Browse files
committed
test(UMDExample): upgrade to Cypress 10
1 parent 1ce564f commit 313566a

5 files changed

Lines changed: 23 additions & 12 deletions

File tree

examples/UMD/cypress.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
e2e: {
5+
defaultCommandTimeout: 8000,
6+
// We've imported your old cypress plugins here.
7+
// You may want to clean this up later by importing these.
8+
setupNodeEvents(on, config) {
9+
return require('./cypress/plugins/index.js')(on, config)
10+
},
11+
},
12+
})

examples/UMD/cypress.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

examples/UMD/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/UMD/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"start": "http-server ./dist/",
77
"cypress:open": "npx cypress open",
8-
"cypress:run": "npx cypress run --config defaultCommandTimeout=8000",
8+
"cypress:run": "npx cypress run",
99
"test:debug": "start-server-and-test start http://localhost:8080 cypress:open",
1010
"test": "start-server-and-test start http://localhost:8080 cypress:run"
1111
},
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://github.com/InsightSoftwareConsortium/itk-wasm#readme",
2626
"devDependencies": {
27-
"cypress": "^9.5.2",
27+
"cypress": "^10.3.0",
2828
"http-server": "^14.1.0",
2929
"start-server-and-test": "^1.14.0"
3030
}

0 commit comments

Comments
 (0)