jest updateSnapshot for specific test file
In order to update particular snapshot, you can pass name as an argument to your script test command. In package.json “test”: “jest –verbose” In command line npm test “<spec name>” — -u OR npm test “<spec name>” — –updateSnapshot