feat: use cypress-vite for running e2e tests (#467)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
Mohammad AtaeiandAnthony Fu authored and GitHub committed 2023-03-27 12:04:55 +02:00
1 parent 9071f056b4
commit 2c00f8ba6d
3 files changed
+27 -46

No files matched your search

+4
View File
@@ -1,4 +1,5 @@
import { defineConfig } from 'cypress'
import vitePreprocessor from 'cypress-vite'
export default defineConfig({
e2e: {
@@ -6,5 +7,8 @@ export default defineConfig({
chromeWebSecurity: false,
specPattern: 'cypress/e2e/**/*.spec.*',
supportFile: false,
setupNodeEvents(on) {
on('file:preprocessor', vitePreprocessor())
},
},
})