Wrong jasmine/wd2 typings in Angular 8/9 #17493
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity2: inconvenient
type: bug/fix
type: RFC / discussion / question
Milestone
I created a new blank angular 9 project using next commands:
I added
then()
to test:Then run:
Error occured:
After removing "@types/jasminewd2": "~2.0.3", from package.json, deleting then() of course and running:
Visual studio code reported that expect() matcher is sync method and returns boolean instead of Promise, just removed the .then() and everything works as it should.
Not really sure this is an Angular bug, but package @types/jasminewd2 comes by default I suppose.
The text was updated successfully, but these errors were encountered: