I'm trying to create a simple test script that when run enters watch mode and re-writes a file called jest-lock.json
"test:output:watch": "jest --json --outputFile=jest-lock.json --watch"
When this runs it simply enters an infinite loop and I'm not sure what I'm doing wrong.
I have a simple test and I'm trying to do this in order to use the storybook jest-addon.
Any thoughts? All is appreciated.
Thanks