@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.We need to implement the new typings for Jasmine (version 3.x).
For example, new features like spyOnAllFunctions (https://github.com/jasmine/jasmine/pull/1581) are not available in the current typings.
Some are already in, https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30261 just got merged, and after https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30366 goes in I was planning on following up with a PR to add the async matchers. I'll scan the docs to see about spyOnAllFunctions and if there are any other missing features.
I didn't try too hard to find other functions, but I did add spyOnAllFunctions, expectAsync and all async matchers: See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30646.
Hi @pe8ter,
could you please add definitions for .withArgs() method on the Spy object as well.
It has been added on v3 and I'm apparently not the only one who needs this.
The referenced issue has no comments since 7th September.
Thank you very much! :+1:
@janriemer I think there is an issue with the Jasmine typings in that space and it will take some time to unravel. I will take a look at withArgs, but as part of a separate PR.
@janriemer Someone opened https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30872 with typings for withArgs.
@pe8ter Thank you very much for letting me now! This is great! :heart:
This issue is obsolete, isn't it?
@pe8ter It seems that return type of spyOnAllFunctions is wrong. Shouldn't it be declare function spyOnAllFunctions<T>(object: T): jasmine.SpyObj<T>;?
Most helpful comment
@pe8ter It seems that return type of
spyOnAllFunctionsis wrong. Shouldn't it bedeclare function spyOnAllFunctions<T>(object: T): jasmine.SpyObj<T>;?