Commit 7edc18d
committed
Fix error message for
When running jest in watch mode, with `sl` installed
(https://github.com/mtoyoda/sl), it errors out with the following
message:
```
● Test suite failed to run
thrown: [Error]
```
This is bad because the error is extremely hard to debug.
This change makes it error as follows:
```
● Test suite failed to run
Command failed with ENAMETOOLONG: sl status -amnu /Users/rmartine/dev/ias-backstage/packages/backend
spawn ENAMETOOLONG
```
This, at least, points people in the right direction.
See also: #14046sl (steam locomotive)1 parent 654dbd6 commit 7edc18d
1 file changed
+1
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 36 | + | |
50 | 37 | | |
51 | 38 | | |
52 | 39 | | |
| |||
0 commit comments