p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
The test and test:watch scripts in package.json use NODE_ENV=test jest directly. This syntax works on macOS/Linux shells but fails on Windows (CMD, PowerShell, Git Bash). As a result, tests cannot be executed on Windows machines.
- On Windows, running:
produces:
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
- This makes tests not runnable on Windows environments.
Expected Behavior
- Running:
should start Jest with
NODE_ENV=test set correctly.
- Tests should run successfully across all operating systems.
Steps to reproduce
Steps:
1.Clone the repo on a Windows machine.
2. Run npm install
3.Run npm run test
Snippet:
// Paste your code here :)