Files
vue-flow/cypress/plugins/index.ts
T
2021-12-04 15:42:18 +01:00

17 lines
381 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