npm run test
fails with-jest-app using --watch flag.
#69236
Labels
examples
Issue/PR related to examples
npm run test
fails with-jest-app using --watch flag.
#69236
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 Available memory (MB): 64156 Available CPU cores: 32 Binaries: Node: 20.9.0 npm: 10.2.4 Yarn: 1.22.22 pnpm: 9.8.0 Relevant Packages: next: 14.2.6 // Latest available version is detected (14.2.6). eslint-config-next: N/A react: 18.3.1 react-dom: 18.3.1 typescript: 5.3.3 Next.js Config: output: N/A
Which example does this report relate to?
with-jest-app
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
The default with-jest-app example fails to run the tests and produces an error with no message. Example:
I changed package.json to use a different test command. The default is as follows:
I changed it to two alternative configurations, both which ran the tests successfully:
The example should work out of the box, so either the error should be figured out so --watch works, or --watchAll should be used, or the flag should be removed.
Expected Behavior
To Reproduce
Clone the with-jest-app example project and run
npm run test
The text was updated successfully, but these errors were encountered: