mirror of
https://github.com/slidevjs/slidev.git
synced 2026-09-14 20:46:32 +08:00
21 lines
504 B
TypeScript
21 lines
504 B
TypeScript
import { defineConfig } from 'cypress'
|
|
import { startBasePathServer, stopBasePathServer } from './cypress/basePathServer'
|
|
|
|
export default defineConfig({
|
|
e2e: {
|
|
baseUrl: 'http://localhost:3041',
|
|
chromeWebSecurity: false,
|
|
specPattern: 'cypress/e2e/**/*.spec.*',
|
|
supportFile: false,
|
|
setupNodeEvents(on) {
|
|
on('after:run', async () => {
|
|
await stopBasePathServer()
|
|
})
|
|
on('task', {
|
|
startBasePathServer,
|
|
stopBasePathServer,
|
|
})
|
|
},
|
|
},
|
|
})
|