From 033ba83f3bd8447a4e7794e71986c28ec49280d1 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 3 Jul 2022 01:12:09 +0200 Subject: [PATCH] cypress --- frontend/cypress.config.ts | 10 ++++++++++ frontend/cypress.json | 6 ------ .../authentication.cy.ts} | 0 frontend/cypress/support/{index.ts => e2e.ts} | 0 frontend/package-lock.json | 14 +++++++------- frontend/package.json | 2 +- 6 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 frontend/cypress.config.ts delete mode 100644 frontend/cypress.json rename frontend/cypress/{integration/authentication.spec.ts => e2e/authentication.cy.ts} (100%) rename frontend/cypress/support/{index.ts => e2e.ts} (100%) diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts new file mode 100644 index 0000000000..e2689cba1b --- /dev/null +++ b/frontend/cypress.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'cypress' + +export default defineConfig({ + env: { + baseUrl: 'http://localhost:8000', + }, + e2e: { + setupNodeEvents(on, config) {}, + }, +}) diff --git a/frontend/cypress.json b/frontend/cypress.json deleted file mode 100644 index 13439e57d2..0000000000 --- a/frontend/cypress.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pluginsFile": false, - "env": { - "baseUrl": "http://localhost:8000" - } -} diff --git a/frontend/cypress/integration/authentication.spec.ts b/frontend/cypress/e2e/authentication.cy.ts similarity index 100% rename from frontend/cypress/integration/authentication.spec.ts rename to frontend/cypress/e2e/authentication.cy.ts diff --git a/frontend/cypress/support/index.ts b/frontend/cypress/support/e2e.ts similarity index 100% rename from frontend/cypress/support/index.ts rename to frontend/cypress/support/e2e.ts diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 29a386374b..4560d530b4 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -28,7 +28,7 @@ "@zerodevx/svelte-toast": "^0.7.2", "autoprefixer": "^10.4.1", "cssnano": "^5.1.12", - "cypress": "^9.7.0", + "cypress": "^10.3.0", "eslint": "^8.19.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^4.0.0", @@ -1713,9 +1713,9 @@ } }, "node_modules/cypress": { - "version": "9.7.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.7.0.tgz", - "integrity": "sha512-+1EE1nuuuwIt/N1KXRR2iWHU+OiIt7H28jJDyyI4tiUftId/DrXYEwoDa5+kH2pki1zxnA0r6HrUGHV5eLbF5Q==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.3.0.tgz", + "integrity": "sha512-txkQWKzvBVnWdCuKs5Xc08gjpO89W2Dom2wpZgT9zWZT5jXxqPIxqP/NC1YArtkpmp3fN5HW8aDjYBizHLUFvg==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -7930,9 +7930,9 @@ } }, "cypress": { - "version": "9.7.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.7.0.tgz", - "integrity": "sha512-+1EE1nuuuwIt/N1KXRR2iWHU+OiIt7H28jJDyyI4tiUftId/DrXYEwoDa5+kH2pki1zxnA0r6HrUGHV5eLbF5Q==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.3.0.tgz", + "integrity": "sha512-txkQWKzvBVnWdCuKs5Xc08gjpO89W2Dom2wpZgT9zWZT5jXxqPIxqP/NC1YArtkpmp3fN5HW8aDjYBizHLUFvg==", "dev": true, "requires": { "@cypress/request": "^2.88.10", diff --git a/frontend/package.json b/frontend/package.json index 2607d690ba..32c84b7e31 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,7 +25,7 @@ "@zerodevx/svelte-toast": "^0.7.2", "autoprefixer": "^10.4.1", "cssnano": "^5.1.12", - "cypress": "^9.7.0", + "cypress": "^10.3.0", "eslint": "^8.19.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^4.0.0",