* add key to loading slot Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
17 lines
381 B
TypeScript
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
|