Skip to content

Commit

Permalink
feat: use cypress-vite for running e2e tests (antfu-collective#467)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
mammadataei and antfu authored Mar 27, 2023
1 parent 9071f05 commit 2c00f8b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 46 deletions.
4 changes: 4 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { defineConfig } from 'cypress'
import vitePreprocessor from 'cypress-vite'

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3333',
chromeWebSecurity: false,
specPattern: 'cypress/e2e/**/*.spec.*',
supportFile: false,
setupNodeEvents(on) {
on('file:preprocessor', vitePreprocessor())
},
},
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"critters": "^0.0.16",
"cross-env": "^7.0.3",
"cypress": "^12.8.1",
"cypress-vite": "^1.3.0",
"eslint": "^8.36.0",
"eslint-plugin-cypress": "^2.12.1",
"https-localhost": "^4.7.1",
Expand Down
68 changes: 22 additions & 46 deletions pnpm-lock.yaml

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

0 comments on commit 2c00f8b

Please sign in to comment.