From 1a42f7063c9614bfcda1e230ed321e5eaa749d50 Mon Sep 17 00:00:00 2001 From: kajgrant Date: Sat, 1 Jun 2024 20:24:31 -0700 Subject: [PATCH] removal of cypress tests for docker cypress does not support the raspberry pi arm achitecture, will need to use another framework --- .github/workflows/node.js.yml | 2 -- cypress.config.ts | 8 ------- cypress/e2e/Ticker.cy.ts | 8 ------- cypress/e2e/tsconfig.json | 10 --------- cypress/fixtures/example.json | 5 ----- cypress/support/commands.ts | 39 ----------------------------------- cypress/support/e2e.ts | 20 ------------------ package.json | 3 --- 8 files changed, 95 deletions(-) delete mode 100644 cypress.config.ts delete mode 100644 cypress/e2e/Ticker.cy.ts delete mode 100644 cypress/e2e/tsconfig.json delete mode 100644 cypress/fixtures/example.json delete mode 100644 cypress/support/commands.ts delete mode 100644 cypress/support/e2e.ts diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6d641da..525af34 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -55,5 +55,3 @@ jobs: run: npm run build - name: Unit Tests run: npm run test:unit - - name: End-to-End Tests - run: npm run test:e2e diff --git a/cypress.config.ts b/cypress.config.ts deleted file mode 100644 index 0f66080..0000000 --- a/cypress.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from 'cypress' - -export default defineConfig({ - e2e: { - specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', - baseUrl: 'http://localhost:4173' - } -}) diff --git a/cypress/e2e/Ticker.cy.ts b/cypress/e2e/Ticker.cy.ts deleted file mode 100644 index 3606dcc..0000000 --- a/cypress/e2e/Ticker.cy.ts +++ /dev/null @@ -1,8 +0,0 @@ -// https://on.cypress.io/api - -describe('Page navigation', () => { - it('visits the app root url', () => { - cy.visit('/'); - cy.get('[data-cy="ticker"]').contains('(Coinbase)'); - }); -}); diff --git a/cypress/e2e/tsconfig.json b/cypress/e2e/tsconfig.json deleted file mode 100644 index 37748fe..0000000 --- a/cypress/e2e/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["./**/*", "../support/**/*"], - "compilerOptions": { - "isolatedModules": false, - "target": "es5", - "lib": ["es5", "dom"], - "types": ["cypress"] - } -} diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 02e4254..0000000 --- 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.ts b/cypress/support/commands.ts deleted file mode 100644 index 9b7bb8e..0000000 --- a/cypress/support/commands.ts +++ /dev/null @@ -1,39 +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 -// } -// } -// } - -export {} diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts deleted file mode 100644 index d68db96..0000000 --- a/cypress/support/e2e.ts +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js 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.json b/package.json index 0e349c0..2bfbfca 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", "test:unit": "vitest", - "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", - "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'", "build-only": "vite build", "type-check": "vue-tsc --build --force", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", @@ -33,7 +31,6 @@ "@vue/eslint-config-typescript": "^13.0.0", "@vue/test-utils": "^2.4.5", "@vue/tsconfig": "^0.5.1", - "cypress": "^13.7.2", "eslint": "^8.57.0", "eslint-plugin-cypress": "^2.15.1", "eslint-plugin-vue": "^9.23.0",