Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4f5448

Browse files
authored
feat(babel-jest): export createTransformer function (#12399)
1 parent b4a42eb commit f4f5448

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Features
44

5+
- `[babel-jest]` Export `createTransformer` function ([#12399](https://github.com/facebook/jest/pull/12399))
56
- `[expect]` Expose `AsymmetricMatchers`, `MatcherFunction` and `MatcherFunctionWithState` interfaces ([#12363](https://github.com/facebook/jest/pull/12363), [#12376](https://github.com/facebook/jest/pull/12376))
67
- `[jest-config]` [**BREAKING**] Stop shipping `jest-environment-jsdom` by default ([#12354](https://github.com/facebook/jest/pull/12354))
78
- `[jest-config]` [**BREAKING**] Stop shipping `jest-jasmine2` by default ([#12355](https://github.com/facebook/jest/pull/12355))

e2e/transform/babel-jest-manual/transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

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

1010
module.exports = createTransformer({
1111
presets: ['@babel/preset-flow'],

packages/babel-jest/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function loadBabelOptionsAsync(
149149
return addIstanbulInstrumentation(options, jestTransformOptions);
150150
}
151151

152-
const createTransformer: CreateTransformer = userOptions => {
152+
export const createTransformer: CreateTransformer = userOptions => {
153153
const inputOptions = userOptions ?? {};
154154

155155
const options = {

0 commit comments

Comments
 (0)