typescript: npm run test just hangs on jest w/o any feedback
Not really sure what’s breaking in my case but when I run what I would think are passing test the command line gives zero feedback
On the hello-world untouched I get errors like:
xtypescript@1.0.0 test /Users/matty/exercism/typescript/hello-world
tsc --noEmit -p . && jest --no-cache
hello-world.test.ts(11,12): error TS2554: Expected 0 arguments, but got 1.
hello-world.test.ts(15,12): error TS2554: Expected 0 arguments, but got 1.
But lines 11, 15 are xit and therefore shouldn’t be called.
If I delete them or satisfy the tests than the command line gives me no feedback
Or if I complete the tests I get no feedback:
class HelloWorld {
static hello( name='World' ) {
return `Hello, ${name}!`
}
}
export default HelloWorld
^ should satisfy all the test but when running npm run test
The terminal just hangs
> xtypescript@1.0.0 test /Users/matty/exercism/typescript/hello-world
> tsc --noEmit -p . && jest --no-cache
nothing more… any help?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (9 by maintainers)
@Swizec This was it! Solved with
brew reinstall watchmanFor anyone coming here in the future, it’s a watchman issue.
This helps: https://github.com/facebook/jest/issues/4529