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

expect.addSnapshotSerializer is not a function #7

Closed
luftywiranda13 opened this issue Apr 24, 2017 · 3 comments
Closed

expect.addSnapshotSerializer is not a function #7

luftywiranda13 opened this issue Apr 24, 2017 · 3 comments

Comments

@luftywiranda13
Copy link

screen shot 2017-04-24 at 11 35 59

I got that when I run the test on top of a CRA project.

This is my test suit:
screen shot 2017-04-24 at 11 36 22

@MicheleBertoli
Copy link
Member

Hello @luftywiranda13,
the addSnapshotSerializer function works with Jest 19+.
I assume you are using an earlier version, right?

@luftywiranda13
Copy link
Author

@MicheleBertoli the latest CRA uses jest v18.x.x

I think we can't easily upgrade jest in CRA

@MicheleBertoli
Copy link
Member

You are right @luftywiranda13, you just need to wait for the next version of CRA.

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