feat(*): upgrade cypress

This commit is contained in:
thomas
2025-01-27 21:07:25 +01:00
parent f3be3eedff
commit 5be923c256
18 changed files with 75 additions and 120 deletions

View File

@@ -23,20 +23,3 @@ declare global {
}
Cypress.Commands.add('mount', mount);
//
// -- This is a parent command --
Cypress.Commands.add('login', (email, password) => {
console.log('Custom command example: 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) => { ... })

View File

@@ -82,6 +82,15 @@
"coverage": true
}
}
},
"component-test": {
"executor": "@nx/cypress:cypress",
"options": {
"cypressConfig": "apps/testing/17-router/cypress.config.ts",
"testingType": "component",
"skipServe": true,
"devServerTarget": "testing-router:build"
}
}
}
}

View File

@@ -22,7 +22,7 @@
"path": "./tsconfig.editor.json"
},
{
"path": "./cypress/tsconfig.base.json"
"path": "./cypress/tsconfig.json"
}
],
"extends": "../../../tsconfig.base.json",