Skip to content

Commit 9ebfe0a

Browse files
authored
chorer: add note about babel config to upgrade guide (#12724)
1 parent 4ec4b98 commit 9ebfe0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/UpgradingToJest28.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Upgrading Jest from v27 to v28? This guide aims to help refactoring your configu
77

88
:::info
99

10-
See [changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) for the full list of changes.
10+
See [changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md#2800) for the full list of changes.
1111

1212
:::
1313

@@ -43,6 +43,10 @@ The `testURL` option is removed. Now you should use [`testEnvironmentOptions`](C
4343
+ }
4444
```
4545

46+
### Babel config
47+
48+
`babel-jest` now passes `root: config.rootDir` to Babel when resolving configuration. This improves compatibility when using `projects` with differing configuration, but it might mean your babel config isn't picked up in the same way anymore. You can override this option by passing options to `babel-jest` in your [configuration](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object).
49+
4650
## Fake Timers
4751

4852
Fake timers were refactored to allow passing options to the underlying [`@sinonjs/fake-timers`](https://github.com/sinonjs/fake-timers).

0 commit comments

Comments
 (0)