Skip to content

Commit

Permalink
test(ViteExample): bump to Cypress 10
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jul 8, 2022
1 parent 2cbb9d2 commit 5db507f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 39 deletions.
12 changes: 12 additions & 0 deletions examples/Vite/cypress.config.js
Original file line number Diff line number Diff line change
@@ -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
},
},
})
1 change: 0 additions & 1 deletion examples/Vite/cypress.json

This file was deleted.

File renamed without changes.
22 changes: 0 additions & 22 deletions examples/Vite/cypress/plugins/index.js

This file was deleted.

22 changes: 11 additions & 11 deletions examples/Vite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions examples/Vite/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"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": {
"start": "vite --port 8080",
"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",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 5db507f

Please sign in to comment.