-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests are not rebuilding #5402
Comments
Experiencing the same issue since switching to 1.0.0-rc1. Sometimes tests are not automatically rebuilt. I put some changes into spec and save the file, Sometimes automatic rebuild fails with the following message (actual project directory is replaced with PROJECT_DIR):
|
Can confirm that I'm also getting this error running v1.0.0-rc.2 - saving files seems to kick off a new build but its as if nothing has been changed until the process is completely killed and restarted again. EDIT: It looks like my problem was due to this #5351 My powershell was only spitting out the type errors on the first time round and then when it tried to compile when I saved the tests it was failing because of the type errors. Changing the types: [] to typeRoots: "" workaround described in that ticket solves the issue for me. |
@markheron91 I have similar type errors like what you described. Unfortunately the typeRoot patch I mention in #5351 only seems to work part of the time for me. If a save a single spec file I get the type errors with Jasmine again. |
@coryrylan @markheron91 My |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions.
1.0.0-rc1
Repro steps.
ng new angular-app
ng test
Executed 3 of 3 SUCCESS
app.component.spec.ts
in some test, pastethrow new Error();
Executed 3 of 3 SUCCESS (0.16 secs / 0.155 secs)
Chrome 56.0.2924 (Windows 10 0.0.0) AppComponent should render title in a h1 tag FAILED Failed: Error at webpack:///~/@angular/core/bundles/core-testing.umd.js:54:0 <- src/test.ts:32879:30 [ProxyZone] at webpack:///~/@angular/core/bundles/core-testing.umd.js:105:0 <- src/test.ts:32930:21 [ProxyZone] at AsyncTestZoneSpec.onInvoke (webpack:///~/zone.js/dist/async-test.js:49:0 <- src/test.ts:63577:39) [ProxyZone] at ProxyZoneSpec.onInvoke (webpack:///~/zone.js/dist/proxy.js:76:0 <- src/test.ts:64279:39) [ProxyZone] at Zone.run (webpack:///~/zone.js/dist/zone.js:126:0 <- src/polyfills.ts:1642:43) [ProxyZone => ProxyZone]
Chrome 56.0.2924 (Windows 10 0.0.0): Executed 3 of 3 (1 FAILED) (0.326 secs / 0.173 secs)
Info
The text was updated successfully, but these errors were encountered: