You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,13 +206,13 @@ module.exports = {
206
206
### Using `babel-jest`
207
207
By default ts-jest does not rely on babel-jest. But you may want to use some babel plugins and stll be able to write TypeScript. This can be achieved using the `babelJest` config key. It can be:
208
208
209
-
-`true`, in which case it'll try to find a babel configuration file:
209
+
-`true`, in which case it'll use defaults from babelrc or any other found config file:
210
210
```js
211
211
// jest.config.js
212
212
module.exports= {
213
213
globals: {
214
214
'ts-jest': {
215
-
babelConfig:true
215
+
babelJest:true
216
216
}
217
217
}
218
218
};
@@ -224,7 +224,7 @@ By default ts-jest does not rely on babel-jest. But you may want to use some bab
224
224
module.exports= {
225
225
globals: {
226
226
'ts-jest': {
227
-
babelConfig:'babelrc.test.js'
227
+
babelJest:'babelrc.test.js'
228
228
}
229
229
}
230
230
};
@@ -236,7 +236,7 @@ By default ts-jest does not rely on babel-jest. But you may want to use some bab
236
236
module.exports= {
237
237
globals: {
238
238
'ts-jest': {
239
-
babelConfig: {
239
+
babelJest: {
240
240
plugins: [
241
241
// ...
242
242
]
@@ -246,6 +246,18 @@ By default ts-jest does not rely on babel-jest. But you may want to use some bab
246
246
};
247
247
```
248
248
249
+
-`false`, in which case it'll disable the use of babel-jest (which is the default):
0 commit comments