Need help to run yarn test on Windows 7
When I tried 'yarn test' first time, I got error:
$ NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed � 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.
I then copied the 'test' script and create a test:win script:
"test:win": "SET NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed 👍",
I ran 'yarn test:win', I got the istanbul's error:
yarn test:win yarn run v1.2.1 $ SET NODE_ENV=test istanbul --include-all-sources cover _mocha -- -u bdd $(find test -name '*.js') && istanbul check-coverage && echo All tests passed � ERROR: No coverage files found. Try "istanbul help" for usage
Do I need to manually create a coverage file or am I missing any dependencies?
Thanks
Hi @hungtruongquoc,
Can you let me know the output for
SET NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors test --recursive ?
I have the same bug. Running the command you posted doesn't error but doesn't produce any output.
Having the same issue. Any update on this issue?