'npm run test' not working on windows
See original GitHub issueWin 10 x64 node: 4.4.7. I have also tried with node 6.3.1. (current)
It seems that mocha freezes when running the tests. All I get is
webpack-validator@ test E:\webpack-validator
cross-env NODE_ENV=test mocha "src/**/*.test.js"
......................................
and then it hangs forever. I am really not sure if it is a problem in the scripts or mocha itself. Help would be really appreciated…
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Error when I try to run `npm run test` in windows command ...
I tried to run npm run test on my directory but I get an error in the terminal that says: '.' is not...
Read more >npm run test does not work on Windows cmd #4886 - GitHub
Description: Default script of npm run test does not work on Windows cmd. ... I think the reason is that Windows cmd can't...
Read more >npm-run-script
Description. This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts.
Read more >Troubleshooting - Jest
Troubleshooting. Uh oh, something went wrong? Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why.
Read more >Having a problem running tests with "npm test" : r/node - Reddit
I'm using Windows 8.1. '.' is not recognized as an internal or external command, operable program or batch file. NPM is running your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

After some hours of investigation I found the following possible solution.
This is a bigger change as I expected and it might have some tradeoffs, but otherwise I would not be able to contribute any longer which I really like…
I don’t want to make that changes until you all are ok with that @kentcdodds @bebraw @jonathanewerner
Yea, let’s extract this as
test/mock/absolutePathor something.