Skip to content
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

jasmine.addMatchers does not exist? #8

Open
SomethingNew71 opened this issue Oct 6, 2021 · 3 comments
Open

jasmine.addMatchers does not exist? #8

SomethingNew71 opened this issue Oct 6, 2021 · 3 comments

Comments

@SomethingNew71
Copy link

Angular 12
Jasmine 3.9.0

Screen Shot 2021-10-06 at 12 37 45 PM

@em-vo
Copy link
Contributor

em-vo commented Oct 8, 2021

Hello!
Thanks for opening this issue!
I'll look into it this afternoon and let you know!

@SomethingNew71
Copy link
Author

Thank you so much! If there is any additional information I can help provide please let me know. I did notice that the types included with Jest seem to be the main culprit which is causing the compile errors. Not sure why they don't include addMatchers here.

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jest/index.d.ts#L1352

@em-vo
Copy link
Contributor

em-vo commented Oct 22, 2021

Indeed. It seems jest only ships part of Jasmine's API.
I looked at Jasmine types, addMatchers is correctly defined here: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jasmine/index.d.ts#L391

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants