Closed yasuking0304 closed 3 months ago
cross-env
is no longer maintained and its GitHub repository is already archived, I want to avoid adding it if possible.NODE_OPTIONS=--experimental-vm-modules
is required to support ESM on Jest, you would not need environment variables in the npm script by migrating to Vitest.So this time, I want to solve this problem by migrating to Vitest or using WSL.
Closing for now.
FYI. I have migrated from Jest to Vitest. Now the environment variable is removed from npm scripts and they should not cause syntax errors in most cases.
Problem
Currently, when I run test in a Windows environment, it fails.
Suggestion
If you introduce "cross-env", you will be able to execute test independently of the OS.
now package.json
after