mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-16 23:52:13 -05:00
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
function getLegacyDevServer (devServer, postProcessConfig = (config) => config) {
|
|
return (on, config, ...args) => {
|
|
on('dev-server:start', (cypressDevServerConfig) => {
|
|
return devServer(cypressDevServerConfig, ...args)
|
|
})
|
|
|
|
return postProcessConfig(config)
|
|
}
|
|
}
|
|
|
|
module.exports = { getLegacyDevServer }
|