nervtn-web/cypress/plugins/index.js

17 lines
460 B
JavaScript
Raw Normal View History

2021-11-29 01:06:34 +01:00
/* jshint -W097 */ // don't warn about "use strict"
"use strict";
const {startDevServer} = require('@cypress/vite-dev-server');
module.exports = (on, config) => {
require('@cypress/code-coverage/task')(on, config);
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'));
on('dev-server:start', (options) => {
return startDevServer({
options,
webpackConfig
});
});
return config;
};