bahmutov / bahmutov/cypress-angular-unit-test

Does this library work with Angular13 component testing? Don't see project get compiled and it hangs

Open
#777 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
160
Forks
32
PR merge metrics
No merged PRs in 30d

Description

### Current behavior

We are using this cypress angular setup for angular 7 projects and it is going well. Now, we are migrating to angular 13 and when I use this setup, it doesn't compile and just hangs

### Desired behavior
Expected to work like as like in angular 7 project.

### Test code to reproduce

### Versions

"@cypress/webpack-dev-server": "1.8.4",
"@cypress/webpack-preprocessor": "5.11.1",
"cypress-angular-unit-test": "3.9.0",
"html-webpack-plugin": "5.5.0",
"ts-loader": "9.2.7",
"webpack-dev-server": "3.11.3",
"cypress": "9.5.1",

"dependencies": {
"@angular/animations": "~13.3.0",
"@angular/cdk": "^13.3.7",
"@angular/common": "~13.3.0",
"@angular/compiler": "~13.3.0",
"@angular/core": "~13.3.0",
"@angular/elements": "^13.3.5",
"@angular/forms": "~13.3.0",
"@angular/platform-browser": "~13.3.0",
"@angular/platform-browser-dynamic": "~13.3.0",
"@angular/router": "~13.3.0",
"@ngneat/spectator": "^10.0.1",
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"cypress-setup": "^2022.5.30150325",
"ngx-translate-multi-http-loader": "^7.0.5",
"primeicons": "^5.0.0",
"primeng": "^13.4.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.3.4",
"@angular/cli": "~13.3.4",
"@angular/compiler-cli": "~13.3.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"concat": "^1.0.3",
"copy-files-from-to": "^3.2.2",
"del-cli": "^4.0.1",
"fs-extra": "^10.1.0",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.1.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"ng-mocks": "^13.5.2",
"ng-packagr": "^13.0.0",
"primeicons": "^5.0.0",
"primeng": "^13.4.0",
"replace-in-file": "^6.3.5",
"typescript": "~4.6.2"
}

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or reproducible test is identified. Begin by reproducing the reported hang with Angular 13, cypress-angular-unit-test 3.9.0, Cypress 9.5.1, and the listed webpack-dev-server packages; done means the component project compiles and tests run as they did with Angular 7.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, cypress, typescript, webpack
Domain
frontend, testing, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.