Commit fb6cc0e
committed
fix(config/jest): import and apply ts-jest preset instead of just setting
Because we're encapsulating the `ts-jest` dependency, there are cases where
a package manager won't lift `ts-jest` to the root `node_modules` directory
which prevents the preset from being loaded. Importing (`require('ts-jest/presets')`)
the preset will always resolve, even when the dependency is nested, e.g:
`./node_modules/@hover/javascript/node_modules/ts-jest`preset:
1 parent 281356b commit fb6cc0e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments