1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00
This commit is contained in:
Michael Shanks 2020-06-21 21:41:10 +01:00
parent 8acdda053d
commit d424c3ff52
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 })
})