Skip to content

Commit

Permalink
chorer: add note about babel config to upgrade guide (#12724)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Apr 24, 2022
1 parent 4ec4b98 commit 9ebfe0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/UpgradingToJest28.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Upgrading Jest from v27 to v28? This guide aims to help refactoring your configu

:::info

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

:::

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

### Babel config

`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).

## Fake Timers

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

0 comments on commit 9ebfe0a

Please sign in to comment.