-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bug? #9926
Comments
PR welcome changing to diff --git i/packages/babel-jest/src/index.ts w/packages/babel-jest/src/index.ts
index 50259e0ec..5a23c4fdb 100644
--- i/packages/babel-jest/src/index.ts
+++ w/packages/babel-jest/src/index.ts
@@ -41,8 +41,9 @@ interface BabelJestTransformOptions extends TransformOptions {
}
const createTransformer = (
- inputOptions: TransformOptions = {},
+ userOptions?: TransformOptions | null,
): BabelJestTransformer => {
+ const inputOptions: TransformOptions = userOptions ?? {};
const options: BabelJestTransformOptions = {
...inputOptions,
caller: { along with some tests 🙂 |
Can I take this issue? |
Go for it @yinm! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
bb720d2#diff-ad0be0b5e1f4711c408a42bdbea512bcR43-R57
☝️ @SimenB This code change in your recent commit does break some tests in my code which used to work before. The issue I experience is that it is getting called from
@jest/transform/build/ScriptTransformer.js:364:31
withnull
passed in asinputOptions
argument, in this case the default{}
value is not applied toinputOptions
, it remainsnull
and the code crashes at the line...inputOptions.caller
due to access to a field ofnull
.The text was updated successfully, but these errors were encountered: