From eaf6ddd47496e884066006f1fb35e3a90aac5176 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 Jun 2022 15:53:45 +0900 Subject: [PATCH] update cypress --- cypress.config.ts | 15 ++++++++++----- cypress/{integration/basic.js => e2e/basic.cy.js} | 0 .../{integration/widgets.js => e2e/widgets.cy.js} | 0 cypress/support/{index.js => e2e.js} | 0 4 files changed, 10 insertions(+), 5 deletions(-) rename cypress/{integration/basic.js => e2e/basic.cy.js} (100%) rename cypress/{integration/widgets.js => e2e/widgets.cy.js} (100%) rename cypress/support/{index.js => e2e.js} (100%) diff --git a/cypress.config.ts b/cypress.config.ts index 3c8a8c138..e390c41a5 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,7 +1,12 @@ -import { defineConfig } from 'cypress'; +import { defineConfig } from 'cypress' export default defineConfig({ - e2e: { - baseUrl: 'http://localhost:61812', - }, -}); + e2e: { + // We've imported your old cypress plugins here. + // You may want to clean this up later by importing these. + setupNodeEvents(on, config) { + return require('./cypress/plugins/index.js')(on, config) + }, + baseUrl: 'http://localhost:61812', + }, +}) diff --git a/cypress/integration/basic.js b/cypress/e2e/basic.cy.js similarity index 100% rename from cypress/integration/basic.js rename to cypress/e2e/basic.cy.js diff --git a/cypress/integration/widgets.js b/cypress/e2e/widgets.cy.js similarity index 100% rename from cypress/integration/widgets.js rename to cypress/e2e/widgets.cy.js diff --git a/cypress/support/index.js b/cypress/support/e2e.js similarity index 100% rename from cypress/support/index.js rename to cypress/support/e2e.js