Files
vue-flow/e2e/cypress/plugins/index.ts
Braks 08204fdcbb feat: Test pipeline
* Rename tests dir to e2e as tests gets ignored as "package" by turbo
2022-04-11 11:30:10 +02:00

17 lines
369 B
TypeScript

import { resolve } from 'path'
import { startDevServer } from '@cypress/vite-dev-server'
export default ((on, config) => {
on('dev-server:start', async (options) =>
startDevServer({
options,
viteConfig: {
mode: 'test',
configFile: resolve(__dirname, 'vite.config.ts'),
},
}),
)
return config
}) as Cypress.PluginConfig