-
Hi I'm contributing to a open source project that uses Jest for test (https://github.com/Koenkk/zigbee-herdsman-converters). My IDE is vscode on Windows (latest version). I have installed jest, but have som problems running Jest on this project. In package.json the script section says |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not sure if you still need help as it has been a while, but I'll answer anyways. Windows doesn't support setting environment variables that way. Your best bet is to use something WSL if you have it as this will use linux to run the script. If you don't have WSL you can take a look at cross-env and change the script to be: |
Beta Was this translation helpful? Give feedback.
Not sure if you still need help as it has been a while, but I'll answer anyways.
Windows doesn't support setting environment variables that way. Your best bet is to use something WSL if you have it as this will use linux to run the script. If you don't have WSL you can take a look at cross-env and change the script to be:
"test": "cross-env ZHC_TEST=true jest test"
Hope this helps you in any way 👍