feat: use cypress-vite for running e2e tests (#467)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
1 parent
9071f056b4
commit
2c00f8ba6d
3 files changed
+27
-46
No files matched your search
@@ -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())
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user