Skip to content
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

refactor(transformer): correctly detect jest import name bindings #1955

Merged
merged 1 commit into from Sep 14, 2020
Merged

refactor(transformer): correctly detect jest import name bindings #1955

merged 1 commit into from Sep 14, 2020

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Sep 13, 2020

Summary

In #1937, we added support for @jest/globals. However, the logic to detect jest import name bindings wasn't correct. It failed with the case import {test,jest} from '@jest/globals'. This PR will fix that issue.

Test plan

Adjusted unit test, e2e test. Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@coveralls
Copy link

coveralls commented Sep 13, 2020

Pull Request Test Coverage Report for Build 5911

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 93.416%

Totals Coverage Status
Change from base Build 5907: 0.05%
Covered Lines: 1135
Relevant Lines: 1169

💛 - Coveralls

@ahnpnl ahnpnl merged commit 4ab5ff3 into kulshekhar:master Sep 14, 2020
@ahnpnl ahnpnl deleted the fix-transformer branch September 14, 2020 08:24
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.

None yet

3 participants