Open srleecode opened 3 years ago
Hi @srlee309, sorry for responding so late. Actually, the first start is slow because Cypress has to bundle the CDK testing code. We will probably improve this in the future using our preprocessor here https://github.com/jscutlery/test-utils/tree/main/packages/cypress-angular-preprocessor. Interestingly, the harness test is faster after the build 😊
Fixing this will also help https://github.com/angular/components/issues/22015 as the bundle will be smaller.
Using the test harness code causes the test suite to take 4 seconds on my machine before it starts running. Is this because of all the cdk testing code that is required?
With test harness https://user-images.githubusercontent.com/13536934/103714352-971fa900-5012-11eb-89e6-d31cdce80be6.mp4
With default cypress https://user-images.githubusercontent.com/13536934/103714928-55dbc900-5013-11eb-9acc-766d71f03bfb.mp4
To reproduce the issue: