vitesse/cypress.config.ts

15 lines
350 B
TypeScript
Raw Normal View History

2022-06-30 13:25:29 +08:00
import { defineConfig } from 'cypress'
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,
setupNodeEvents(on) {
on('file:preprocessor', vitePreprocessor())
},
2022-06-30 13:25:29 +08:00
},
})