diff --git a/angular.json b/angular.json index 9cb2f49..8ccaf03 100644 --- a/angular.json +++ b/angular.json @@ -103,61 +103,15 @@ "src/**/*.html" ] } - }, - "cypress-run": { - "builder": "@cypress/schematic:cypress", - "options": { - "devServerTarget": "imlegend-client:serve" - }, - "configurations": { - "production": { - "devServerTarget": "imlegend-client:serve:production" - } - } - }, - "cypress-open": { - "builder": "@cypress/schematic:cypress", - "options": { - "watch": true, - "headless": false - } - }, - "ct": { - "builder": "@cypress/schematic:cypress", - "options": { - "devServerTarget": "imlegend-client:serve", - "watch": true, - "headless": false, - "testingType": "component" - }, - "configurations": { - "development": { - "devServerTarget": "imlegend-client:serve:development" - } - } - }, - "e2e": { - "builder": "@cypress/schematic:cypress", - "options": { - "devServerTarget": "imlegend-client:serve", - "watch": true, - "headless": false - }, - "configurations": { - "production": { - "devServerTarget": "imlegend-client:serve:production" - } - } } } } }, "cli": { "schematicCollections": [ - "@cypress/schematic", "@angular-eslint/schematics", "@ngrx/schematics", "@schematics/angular" ] } -} \ No newline at end of file +} diff --git a/cypress.config.ts b/cypress.config.ts deleted file mode 100644 index 4ff5d26..0000000 --- a/cypress.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig } from 'cypress' - -export default defineConfig({ - - e2e: { - 'baseUrl': 'http://localhost:4200' - }, - - - component: { - devServer: { - framework: 'angular', - bundler: 'webpack', - }, - specPattern: '**/*.cy.ts' - } - -}) \ No newline at end of file diff --git a/cypress/e2e/spec.cy.ts b/cypress/e2e/spec.cy.ts deleted file mode 100644 index 3e07149..0000000 --- a/cypress/e2e/spec.cy.ts +++ /dev/null @@ -1,6 +0,0 @@ -describe('My First Test', () => { - it('Visits the initial project page', () => { - cy.visit('/') - cy.contains('app is running') - }) -}) diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 20b22a1..0000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io" -} - \ No newline at end of file diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts deleted file mode 100644 index af1f44a..0000000 --- a/cypress/support/commands.ts +++ /dev/null @@ -1,43 +0,0 @@ -// *********************************************** -// This example namespace declaration will help -// with Intellisense and code completion in your -// IDE or Text Editor. -// *********************************************** -// declare namespace Cypress { -// interface Chainable { -// customCommand(param: any): typeof customCommand; -// } -// } -// -// function customCommand(param: any): void { -// console.warn(param); -// } -// -// NOTE: You can use it like so: -// Cypress.Commands.add('customCommand', customCommand); -// -// *********************************************** -// This example commands.js 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) => { ... }) diff --git a/cypress/support/component-index.html b/cypress/support/component-index.html deleted file mode 100644 index ac6e79f..0000000 --- a/cypress/support/component-index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Components App - - -
- - \ No newline at end of file diff --git a/cypress/support/component.ts b/cypress/support/component.ts deleted file mode 100644 index 96e1d27..0000000 --- a/cypress/support/component.ts +++ /dev/null @@ -1,39 +0,0 @@ -// *********************************************************** -// This example support/component.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') - -import { mount } from 'cypress/angular' - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - namespace Cypress { - interface Chainable { - mount: typeof mount - } - } -} - -Cypress.Commands.add('mount', mount) - -// Example use: -// cy.mount(MyComponent) diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts deleted file mode 100644 index 55540ff..0000000 --- a/cypress/support/e2e.ts +++ /dev/null @@ -1,17 +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 -// *********************************************************** - -// When a command from ./commands is ready to use, import with `import './commands'` syntax -// import './commands'; diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json deleted file mode 100644 index 79d78d7..0000000 --- a/cypress/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig.json", - "include": ["**/*.ts"], - "compilerOptions": { - "sourceMap": false, - "types": ["cypress"] - } -} diff --git a/package.json b/package.json index a6dc2f4..60ad84d 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,7 @@ "watch": "ng build --watch --configuration development", "test": "ng test", "lint": "ng lint", - "e2e": "ng e2e", - "cypress:open": "cypress open", - "cypress:run": "cypress run" + "e2e": "ng e2e" }, "private": true, "dependencies": { @@ -39,7 +37,6 @@ "@angular-eslint/template-parser": "17.1.1", "@angular/cli": "17.0.6", "@angular/compiler-cli": "17.0.0", - "@cypress/schematic": "^2.5.2", "@ngrx/eslint-plugin": "17.2.0", "@ngrx/schematics": "^18.0.2", "@types/jasmine": "5.1.0", @@ -54,6 +51,5 @@ "karma-jasmine": "5.1.0", "karma-jasmine-html-reporter": "2.1.0", "typescript": "5.2.2", - "cypress": "latest" } }