diff --git a/examples/Vite/cypress.config.js b/examples/Vite/cypress.config.js new file mode 100644 index 000000000..d631b1a0a --- /dev/null +++ b/examples/Vite/cypress.config.js @@ -0,0 +1,12 @@ +const { defineConfig } = require('cypress') + +module.exports = defineConfig({ + e2e: { + defaultCommandTimeout: 8000, + // We've imported your old cypress plugins here. + // You may want to clean this up later by importing these. + setupNodeEvents(on, config) { + // implement node event listeners here + }, + }, +}) diff --git a/examples/Vite/cypress.json b/examples/Vite/cypress.json deleted file mode 100644 index 0967ef424..000000000 --- a/examples/Vite/cypress.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/examples/Vite/cypress/integration/load_data_spec.js b/examples/Vite/cypress/e2e/load_data.cy.js similarity index 100% rename from examples/Vite/cypress/integration/load_data_spec.js rename to examples/Vite/cypress/e2e/load_data.cy.js diff --git a/examples/Vite/cypress/plugins/index.js b/examples/Vite/cypress/plugins/index.js deleted file mode 100644 index 59b2bab6e..000000000 --- a/examples/Vite/cypress/plugins/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config -} diff --git a/examples/Vite/package-lock.json b/examples/Vite/package-lock.json index 5afbee0c7..761a61ebb 100644 --- a/examples/Vite/package-lock.json +++ b/examples/Vite/package-lock.json @@ -1,12 +1,12 @@ { "name": "itk-vite-example", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "itk-vite-example", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0", "dependencies": { "curry": "^1.2.0", @@ -15,7 +15,7 @@ "itk-wasm": "^1.0.0-b.6" }, "devDependencies": { - "cypress": "^9.5.2", + "cypress": "^10.3.0", "rollup-plugin-copy": "^3.4.0", "start-server-and-test": "^1.14.0", "vite": "^2.8.6" @@ -677,9 +677,9 @@ "integrity": "sha1-nm3SiVSNun5lPVrj/pA/59+zOvI=" }, "node_modules/cypress": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.5.2.tgz", - "integrity": "sha512-gYiQYvJozMzDOriUV1rCt6CeRM/pRK4nhwGJj3nJQyX2BoUdTCVwp30xDMKc771HiNVhBtgj5o5/iBdVDVXQUg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.3.0.tgz", + "integrity": "sha512-txkQWKzvBVnWdCuKs5Xc08gjpO89W2Dom2wpZgT9zWZT5jXxqPIxqP/NC1YArtkpmp3fN5HW8aDjYBizHLUFvg==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -715,7 +715,7 @@ "listr2": "^3.8.3", "lodash": "^4.17.21", "log-symbols": "^4.0.0", - "minimist": "^1.2.5", + "minimist": "^1.2.6", "ospath": "^1.2.2", "pretty-bytes": "^5.6.0", "proxy-from-env": "1.0.0", @@ -3619,9 +3619,9 @@ "integrity": "sha1-nm3SiVSNun5lPVrj/pA/59+zOvI=" }, "cypress": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.5.2.tgz", - "integrity": "sha512-gYiQYvJozMzDOriUV1rCt6CeRM/pRK4nhwGJj3nJQyX2BoUdTCVwp30xDMKc771HiNVhBtgj5o5/iBdVDVXQUg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.3.0.tgz", + "integrity": "sha512-txkQWKzvBVnWdCuKs5Xc08gjpO89W2Dom2wpZgT9zWZT5jXxqPIxqP/NC1YArtkpmp3fN5HW8aDjYBizHLUFvg==", "dev": true, "requires": { "@cypress/request": "^2.88.10", @@ -3656,7 +3656,7 @@ "listr2": "^3.8.3", "lodash": "^4.17.21", "log-symbols": "^4.0.0", - "minimist": "^1.2.5", + "minimist": "^1.2.6", "ospath": "^1.2.2", "pretty-bytes": "^5.6.0", "proxy-from-env": "1.0.0", diff --git a/examples/Vite/package.json b/examples/Vite/package.json index 07980b0d6..7b21aad44 100644 --- a/examples/Vite/package.json +++ b/examples/Vite/package.json @@ -1,6 +1,6 @@ { "name": "itk-vite-example", - "version": "1.0.0", + "version": "1.0.1", "description": "This example demonstrates how to use itk-wasm in a Rollup project that targets the browser.", "main": "index.js", "scripts": { @@ -8,9 +8,9 @@ "build": "vite build", "start:production": "vite preview --port 8080", "cypress:open": "npx cypress open", - "cypress:run": "npx cypress run --config defaultCommandTimeout=8000", - "cypress:runChrome": "npx cypress run --config defaultCommandTimeout=8000 --browser chrome", - "cypress:runFirefox": "npx cypress run --config defaultCommandTimeout=8000 --browser firefox", + "cypress:run": "npx cypress run", + "cypress:runChrome": "npx cypress run --browser chrome", + "cypress:runFirefox": "npx cypress run --browser firefox", "test:debug": "start-server-and-test start http-get://localhost:8080 cypress:open", "test": "start-server-and-test start:production http-get://localhost:8080 cypress:run", "test:chrome": "start-server-and-test start:production http-get://localhost:8080 cypress:runChrome", @@ -38,7 +38,7 @@ "itk-wasm": "^1.0.0-b.6" }, "devDependencies": { - "cypress": "^9.5.2", + "cypress": "^10.3.0", "rollup-plugin-copy": "^3.4.0", "start-server-and-test": "^1.14.0", "vite": "^2.8.6"