This commit is contained in:
Michael Shanks 2020-06-21 21:41:10 +01:00
parent a69fdbfc16
commit fab5832425
2 changed files with 2 additions and 4 deletions

View File

@ -15,6 +15,7 @@
/**
* @type {Cypress.PluginConfig}
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config

View File

@ -11,10 +11,7 @@ const run = require("../../cli/src/commands/run/runHandler")
rimraf.sync(homedir)
init({ dir: homedir, clientId: "cypress-test" })
.then(() => {
init({ dir: homedir, clientId: "cypress-test" }).then(() => {
delete require.cache[require.resolve("../../server/src/environment")]
run({ dir: homedir })
})