Commit a97a5af
authored
(fix): jest config parsing shouldn't silently fail on error (#499)
- before if your jest.config.js had an error in it, the try/catch would
just ignore it and pretend like your jest.config.js didn't exist
- this caused me a lot of confusion as to why my customizations
seemingly weren't being read at all
- instead of try/catching a MODULE_NOT_FOUND, check if it exists first,
and only then do parsing
- and let it throw an error if there is one, don't cover it up1 parent df22fe3 commit a97a5af
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
539 | 541 | | |
540 | 542 | | |
541 | | - | |
| 543 | + | |
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
| |||
0 commit comments