diff --git a/packages/builder/cypress/plugins/index.js b/packages/builder/cypress/plugins/index.js index aa9918d215..59b2bab6e4 100644 --- a/packages/builder/cypress/plugins/index.js +++ b/packages/builder/cypress/plugins/index.js @@ -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 diff --git a/packages/builder/cypress/setup.js b/packages/builder/cypress/setup.js index 4f20fec9ba..80516471da 100644 --- a/packages/builder/cypress/setup.js +++ b/packages/builder/cypress/setup.js @@ -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 }) }) - -