From 3e70f514d33ea29c377ee560f428f1e814469278 Mon Sep 17 00:00:00 2001 From: Mehul Mathur Date: Fri, 3 May 2024 22:16:44 +0000 Subject: [PATCH] refactor: removed cypress support files --- cypress/fixtures/example.json | 5 ----- cypress/support/commands.js | 37 ----------------------------------- cypress/support/e2e.js | 20 ------------------- package-lock.json | 4 ++-- package.json | 4 ++-- 5 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 cypress/fixtures/example.json delete mode 100644 cypress/support/commands.js delete mode 100644 cypress/support/e2e.js diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 02e4254378..0000000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/cypress/support/commands.js b/cypress/support/commands.js deleted file mode 100644 index 95857aea4c..0000000000 --- a/cypress/support/commands.js +++ /dev/null @@ -1,37 +0,0 @@ -/// -// *********************************************** -// This example commands.ts shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) -// -// declare global { -// namespace Cypress { -// interface Chainable { -// login(email: string, password: string): Chainable -// drag(subject: string, options?: Partial): Chainable -// dismiss(subject: string, options?: Partial): Chainable -// visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable -// } -// } -// } diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js deleted file mode 100644 index ed5730de11..0000000000 --- a/cypress/support/e2e.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/e2e.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') diff --git a/package-lock.json b/package-lock.json index b86b20e7a3..06aa2732c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -69,9 +69,9 @@ "all-node-versions": "11.0.1", "babel-loader": "9.1.2", "css-loader": "6.7.3", - "cypress": "^13.8.1", + "cypress": "13.8.1", "eslint": "8.24.0", - "eslint-plugin-cypress": "^3.0.3", + "eslint-plugin-cypress": "3.0.3", "eslint-plugin-jest": "27.0.4", "eslint-plugin-react": "7.31.8", "http-server": "14.0.0", diff --git a/package.json b/package.json index 47739864ba..69def6ef70 100644 --- a/package.json +++ b/package.json @@ -92,9 +92,9 @@ "all-node-versions": "11.0.1", "babel-loader": "9.1.2", "css-loader": "6.7.3", - "cypress": "^13.8.1", + "cypress": "13.8.1", "eslint": "8.24.0", - "eslint-plugin-cypress": "^3.0.3", + "eslint-plugin-cypress": "3.0.3", "eslint-plugin-jest": "27.0.4", "eslint-plugin-react": "7.31.8", "http-server": "14.0.0",