Open getdave opened 1 year ago
It appears to be working correctly in my environment.
Example command:
npm run test:unit:watch packages/block-editor/src/hooks/duotone.js
I think you need to specify a test file:
npm run test:unit:watch packages/block-editor/src/hooks/test/duotone.js
The following is how it works. You can see the watch mode starting at around 28 seconds.
I'm not getting that error either. Maybe try reinstalling the dependencies to be sure?
It's been a problem for a while for me. This isn't a new thing. I'm installed dependencies.
I'm using zsh
shell and wondering if that's having any form of impact on watcher
or something like that.
I'm also using zsh so I doubt that.
What's your Node.js version? And npm version? I'm not getting the error even when I installed the latest Node version though.
Is this due to the Node version being lower than 14.17.0 as reported in create-react-app issue?
npm
6.14.18v14.16.1
I'll see if upgrading Node works.
For a long while now I've tried to run unit tests with
watch
and it always fails.Example command:
Here's the error (with parts redacted):
I don't understand why this is happening. I wonder if folks experienced in test setup might be able to help. Particularly @kevin940726.