Add .toMatchSnapshot() (#48029)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48029

Changelog: [Internal]

Adding snapshot support for rendered output only for now.
This will only work if snapshot is created beforehand by hand.

# Next steps
* Create snapshot when no prior snapshot is available
* Pass and update if instructed

Reviewed By: christophpurrer

Differential Revision: D66601387

fbshipit-source-id: fe528cded43c5ba36d314bd9af8e3fb84b98ac3e
This commit is contained in:
Andrew Datsenko
2024-12-09 19:09:57 -08:00
committed by Facebook GitHub Bot
parent a4a2c2867a
commit a8a136f3ef
8 changed files with 179 additions and 4 deletions
+1
View File
@@ -85,6 +85,7 @@
"inquirer": "^7.1.0",
"jest": "^29.6.3",
"jest-diff": "^29.7.0",
"jest-snapshot": "^29.7.0",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.14.0",
"metro-babel-register": "^0.81.0",