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

Could it work with Jest? #11

Closed
slawojstanislawski opened this issue Apr 10, 2018 · 5 comments
Closed

Could it work with Jest? #11

slawojstanislawski opened this issue Apr 10, 2018 · 5 comments

Comments

@slawojstanislawski
Copy link

I would like to use this library with Jest testing framework, however when I follow the instructions provided on this repo https://github.com/thymikee/jest-preset-angular I'm getting errors:
Cannot read property 'hostFixture'/'testedComponent'/'create' of null.

@bengry
Copy link

bengry commented Apr 10, 2018 via email

@NetanelBasal
Copy link
Member

In general, It supports jasmine, but @bengry says it is working with jest, so maybe he can help.

@slawojstanislawski
Copy link
Author

I've been using the library since it came out under a different name, and it used function(this: Context), I didn't notice the change to arrow functions. Now I checked and in fact it's working fine with jest. Awesome library btw.

@NetanelBasal
Copy link
Member

Thanks :)

@LayZeeDK
Copy link
Contributor

#40 added a Jest API to version 2.3.0.

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

4 participants