Files
cypress/npm/vite-dev-server/cypress.config.ts
T
2021-11-19 13:42:58 -05:00

23 lines
547 B
TypeScript

import { defineConfig } from 'cypress'
export default defineConfig({
'pluginsFile': 'cypress/plugins.js',
'video': false,
'fixturesFolder': false,
'testFiles': '**/*.spec.*',
'componentFolder': 'cypress/components',
'component': {
devServer (cypressConfig) {
const path = require('path')
const { startDevServer } = require('./dist')
return startDevServer({
options: cypressConfig,
viteConfig: {
configFile: path.resolve(__dirname, 'vite.config.ts'),
},
})
},
},
})