frequi_origin/cypress/plugins/index.js
2022-02-05 19:34:59 +01:00

14 lines
334 B
JavaScript

const path = require('path');
const { startDevServer } = require('@cypress/vite-dev-server');
module.exports = (on, config) => {
on('dev-server:start', (options) => {
return startDevServer({
options,
viteConfig: {
configFile: path.resolve(__dirname, '..', '..', 'vite.config.js'),
},
});
});
};