Skip to content

fix(config): create fallback jest config when jest config is undefined#2421

Merged
ahnpnl merged 1 commit intokulshekhar:v26.5.3from
ahnpnl:fix-jest-config
Mar 3, 2021
Merged

fix(config): create fallback jest config when jest config is undefined#2421
ahnpnl merged 1 commit intokulshekhar:v26.5.3from
ahnpnl:fix-jest-config

Conversation

@ahnpnl
Copy link
Copy Markdown
Collaborator

@ahnpnl ahnpnl commented Mar 3, 2021

Summary

Jest config which is passed to transformer can be undefined (no idea how that can happen ???) so this PR creates a fallback config when that scenario happens.

Closes #2085

Test plan

Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@ahnpnl ahnpnl marked this pull request as ready for review March 3, 2021 20:22
@ahnpnl ahnpnl requested a review from kulshekhar as a code owner March 3, 2021 20:22
@ahnpnl ahnpnl merged commit 0fb6b45 into kulshekhar:v26.5.3 Mar 3, 2021
@ahnpnl ahnpnl deleted the fix-jest-config branch March 3, 2021 20:22
This was referenced Mar 5, 2021
This was referenced Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jest + ts-jest: after 26.6.0/26.4.1, combination throws error "Cannot read property 'cwd' of undefined

1 participant