Commit 5f38808
jeffmo
Make bin/jest.js point directly at CWD-local "jest" bin (rather than node_modules/.bin/jest)
npm on windows doesn't use some form of symlinks like on *nix, but instead uses
wrapper batch files of some kind. As such, it's unreliable to assume
that node_modules/.bin/jest is a JS module.
This changes bin/jest.js to, instead, try to directly require the binary
path.1 parent 44ee9a8 commit 5f38808
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
316 | 320 | | |
317 | | - | |
318 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
319 | 324 | | |
320 | 325 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| |||
0 commit comments