Quramy / test-with-aot-summary

Explains how to Angular's AOT result in unit testing
2 stars 2 forks source link

Working with Angular 5? #1

Open J-Swift opened 6 years ago

J-Swift commented 6 years ago

Hey, thanks for providing this example, and for your in-depth analysis of test performance I've come across in various places online!

I tried to run this against an Angular 5 (TS 2.7.1) project and it doesn't compile, I think due to angularCompilerOptions being different (according to the documentation here at least https://angular.io/guide/aot-compiler#angular-compiler-options).

Any ideas on how to get this working again until you can get the ng team to support it officially (https://github.com/angular/angular-cli/issues/6650)?

J-Swift commented 6 years ago

I've been looking into this further, and it turns out it is actually an issue with scss compilation. It turns out that the scss needs to be precompiled for ngc but I'm still trying to figure out how to accomplish that in an equivalent way to the process run by angular-cli.

Will update this if I figure something out.