Skip to content
Advertisement

Tag: create-react-app

‘command not found: jest’

I have a test file like so: (I am using create-react-app) and a package.json: when I run jest –updateSnapshot I get: but jest is installed. Answer Jest is installed, but is likely in your ./node_modules/.bin directory. You can append that to your command ./node_modules/.bin/jest –updateSnapshot. Since you already have jest as a scripts command in your package.json you can also

Advertisement