-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
Description
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:
npm run test'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
npm run testNODE_ENV=testset 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 :)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors