Skip to content

Commit

Permalink
feat(babel-jest): export createTransformer function (#12399)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 committed Feb 15, 2022
1 parent b4a42eb commit f4f5448
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

### Features

- `[babel-jest]` Export `createTransformer` function ([#12399](https://github.com/facebook/jest/pull/12399))
- `[expect]` Expose `AsymmetricMatchers`, `MatcherFunction` and `MatcherFunctionWithState` interfaces ([#12363](https://github.com/facebook/jest/pull/12363), [#12376](https://github.com/facebook/jest/pull/12376))
- `[jest-config]` [**BREAKING**] Stop shipping `jest-environment-jsdom` by default ([#12354](https://github.com/facebook/jest/pull/12354))
- `[jest-config]` [**BREAKING**] Stop shipping `jest-jasmine2` by default ([#12355](https://github.com/facebook/jest/pull/12355))
Expand Down
2 changes: 1 addition & 1 deletion e2e/transform/babel-jest-manual/transformer.js
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

const {createTransformer} = require('babel-jest').default;
const {createTransformer} = require('babel-jest');

module.exports = createTransformer({
presets: ['@babel/preset-flow'],
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-jest/src/index.ts
Expand Up @@ -149,7 +149,7 @@ async function loadBabelOptionsAsync(
return addIstanbulInstrumentation(options, jestTransformOptions);
}

const createTransformer: CreateTransformer = userOptions => {
export const createTransformer: CreateTransformer = userOptions => {
const inputOptions = userOptions ?? {};

const options = {
Expand Down

0 comments on commit f4f5448

Please sign in to comment.