feat: cypress init (#1520)

* feat: cypress init

* lint fixes

* fix

* path-fix

* lint-fix
This commit is contained in:
Ramveer
2022-09-09 10:51:23 +02:00
committed by GitHub
parent 4e73f11dd3
commit 18f0251837
15 changed files with 274 additions and 9 deletions
+60 -7
View File
@@ -166,12 +166,44 @@
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
"src/tsconfig.spec.json",
"cypress/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "mifosx-web-app:serve"
},
"configurations": {
"production": {
"devServerTarget": "mifosx-web-app:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false
}
},
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "mifosx-web-app:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "mifosx-web-app:serve:production"
}
}
}
}
},
@@ -180,14 +212,15 @@
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"builder": "@cypress/schematic:cypress",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "mifosx-web-app:serve"
"devServerTarget": "mifosx-web-app-e2e:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "mifosx-web-app:serve:production"
"devServerTarget": "mifosx-web-app-e2e:serve:production"
}
}
},
@@ -195,15 +228,35 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
"e2e/cypress/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "mifosx-web-app-e2e:serve",
"configFile": "e2e/cypress.json"
},
"configurations": {
"production": {
"devServerTarget": "mifosx-web-app-e2e:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false,
"configFile": "e2e/cypress.json"
}
}
}
}
},
"defaultProject": "mifosx-web-app"
}
}