From ec8248548b8d2f113f9456ddef8bfcd5d3dfcfb4 Mon Sep 17 00:00:00 2001 From: sitek94 Date: Wed, 23 Dec 2020 00:40:53 +0100 Subject: [PATCH] update all --- .gitignore | 2 -- .prettierignore | 2 -- cypress.json | 4 ---- cypress/.eslintrc | 10 ---------- cypress/e2e/smoke.js | 10 ---------- cypress/fixtures/example.json | 1 - cypress/plugins/index.js | 4 ---- cypress/support/index.js | 1 - netlify.toml | 3 --- package.json | 5 ----- 10 files changed, 42 deletions(-) delete mode 100644 cypress.json delete mode 100644 cypress/.eslintrc delete mode 100644 cypress/e2e/smoke.js delete mode 100644 cypress/fixtures/example.json delete mode 100644 cypress/plugins/index.js delete mode 100644 cypress/support/index.js diff --git a/.gitignore b/.gitignore index 26e4329..ef0da19 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,6 @@ node_modules .idea public -cypress/videos -cypress/screenshots .env .netlify *.ignored* \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index ed7a0ba..9968f50 100644 --- a/.prettierignore +++ b/.prettierignore @@ -31,8 +31,6 @@ node_modules .DS_Store public -cypress/videos -cypress/screenshots .env .netlify \ No newline at end of file diff --git a/cypress.json b/cypress.json deleted file mode 100644 index 04d27c2..0000000 --- a/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "baseUrl": "http://localhost:8000", - "integrationFolder": "cypress/e2e" -} diff --git a/cypress/.eslintrc b/cypress/.eslintrc deleted file mode 100644 index 628269a..0000000 --- a/cypress/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "plugins": ["cypress"], - "env": { - "cypress/globals": true - }, - "rules": { - "testing-library/await-async-query": "off", - "testing-library/prefer-screen-queries": "off" - } -} diff --git a/cypress/e2e/smoke.js b/cypress/e2e/smoke.js deleted file mode 100644 index 8918d1c..0000000 --- a/cypress/e2e/smoke.js +++ /dev/null @@ -1,10 +0,0 @@ -describe('app', () => { - it('works', () => { - cy.visit('/') - cy.wait(500) // wait for rehydration - cy.findAllByRole('link', {name: /workshops/i}) - .last() - .click() - cy.findAllByRole('heading', {name: /Remote Workshops/i}) - }) -}) diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 0967ef4..0000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js deleted file mode 100644 index 572ae9f..0000000 --- a/cypress/plugins/index.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = (_on, _config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config -} diff --git a/cypress/support/index.js b/cypress/support/index.js deleted file mode 100644 index 5aed0db..0000000 --- a/cypress/support/index.js +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/cypress/add-commands' diff --git a/netlify.toml b/netlify.toml index 5445831..ab74fad 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,9 +1,6 @@ [[plugins]] package = "netlify-plugin-gatsby-cache" -[[plugins]] - package = "netlify-plugin-cypress" - [build] command = "npm run netlify" functions = "public/functions/" diff --git a/package.json b/package.json index 92d8489..522e4a2 100644 --- a/package.json +++ b/package.json @@ -75,18 +75,15 @@ "devDependencies": { "@babel/core": "^7.12.10", "@netlify/zip-it-and-ship-it": "^1.5.1", - "@testing-library/cypress": "^7.0.2", "@testing-library/jest-dom": "^5.11.6", "@testing-library/react": "^11.2.2", "@testing-library/react-hooks": "^3.7.0", "@testing-library/user-event": "^12.5.0", "babel-jest": "^26.6.3", "babel-preset-gatsby": "^0.8.0", - "cypress": "^6.1.0", "dotenv-cli": "^4.0.0", "eslint": "^7.15.0", "eslint-config-kentcdodds": "^17.3.0", - "eslint-plugin-cypress": "^2.11.2", "eslint-plugin-jest": "^24.1.3", "husky": "^4.3.5", "identity-obj-proxy": "^3.0.0", @@ -114,8 +111,6 @@ "lint": "eslint .", "format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|graphql|md|mdx)\"", "cy": "is-ci \"test:e2e\" \"cy:open\"", - "cy:open": "cypress open", - "cy:run": "CYPRESS_BASE_URL=http://localhost:5020 cypress run", "test:e2e": "start-server-and-test start http://localhost:5020 cy:run", "test": "is-ci \"test:coverage\" \"test:watch\"", "test:coverage": "jest --coverage",