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

added path based auto completion for jest module methods #963

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

connectdotz
Copy link
Collaborator

@connectdotz connectdotz commented Dec 13, 2022

Added auto-completion provider to suggest path-based module names for the following methods:

  1. jest.mock|
  2. jest.unmock
  3. jest.domock
  4. jest.dontmock
  5. jest.setMock
  6. jest.requireActual
  7. jest.requireMock
  8. jest.createMockFromModule

resolves #946

@coveralls
Copy link

coveralls commented Dec 13, 2022

Pull Request Test Coverage Report for Build 3691271531

  • 33 of 33 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 97.432%

Totals Coverage Status
Change from base Build 3610454429: 0.02%
Covered Lines: 3305
Relevant Lines: 3339

💛 - Coveralls

@connectdotz connectdotz merged commit 4b81055 into jest-community:master Dec 14, 2022
@connectdotz connectdotz deleted the completion-provider branch December 14, 2022 23:11
legend1202 pushed a commit to legend1202/vscode-jest that referenced this pull request Jun 18, 2023
…ity#963)

* added path based auto completion for jest module methods

* fix test error on windows
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.

[Feature Request] jest.mock path detection and improvement
2 participants