2022-06-30 13:25:29 +08:00
|
|
|
import { defineConfig } from 'cypress'
|
2023-03-27 18:04:55 +08:00
|
|
|
import vitePreprocessor from 'cypress-vite'
|
2022-06-30 13:25:29 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
e2e: {
|
|
|
|
baseUrl: 'http://localhost:3333',
|
|
|
|
chromeWebSecurity: false,
|
|
|
|
specPattern: 'cypress/e2e/**/*.spec.*',
|
|
|
|
supportFile: false,
|
2023-03-27 18:04:55 +08:00
|
|
|
setupNodeEvents(on) {
|
|
|
|
on('file:preprocessor', vitePreprocessor())
|
|
|
|
},
|
2022-06-30 13:25:29 +08:00
|
|
|
},
|
|
|
|
})
|