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

Jest snapshots are not working as expected for React 19 #1

Open
Filipoliko opened this issue Jan 8, 2025 · 0 comments
Open

Jest snapshots are not working as expected for React 19 #1

Filipoliko opened this issue Jan 8, 2025 · 0 comments

Comments

@Filipoliko
Copy link
Owner

See jestjs/jest#15402

As a workaround, we are adding react-is dependency (which is then used by moduleNameMapper configuration in jest config) to React 19 tests setup, which can be removed once resolved by Jest.

https://github.com/Filipoliko/shallow-react-snapshot/blob/main/dependencies/react-19/package.json#L8

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

1 participant