@revoloo/cypress6
Version:
Cypress.io end to end testing tool
22 lines (18 loc) • 434 B
JavaScript
/// <reference types="cypress" />
const { startDevServer } = require('@cypress/webpack-dev-server')
const webpackConfig = {
output: {
publicPath: '/',
},
devServer: {
publicPath: '/',
},
}
/**
* @type Cypress.PluginConfig
*/
module.exports = (on, config) => {
require('@cypress/code-coverage/task')(on, config)
on('dev-server:start', (options) => startDevServer({ options, webpackConfig }))
return config
}