frequi_origin/cypress/plugins/index.js

14 lines
334 B
JavaScript
Raw Normal View History

2021-11-14 10:50:33 +00:00
const path = require('path');
const { startDevServer } = require('@cypress/vite-dev-server');
2021-12-17 18:40:15 +00:00
module.exports = (on, config) => {
on('dev-server:start', (options) => {
return startDevServer({
options,
2021-11-14 10:50:33 +00:00
viteConfig: {
configFile: path.resolve(__dirname, '..', '..', 'vite.config.js'),
},
2021-12-17 18:40:15 +00:00
});
});
};