Skip to content

refactor(tests): use jest-mock-vscode and reorganize test structure#45

Merged
9romise merged 5 commits intomainfrom
refactor/test
Feb 18, 2026
Merged

refactor(tests): use jest-mock-vscode and reorganize test structure#45
9romise merged 5 commits intomainfrom
refactor/test

Conversation

@9romise
Copy link
Member

@9romise 9romise commented Feb 18, 2026

  • re-export VS Code api from jest-mock-vscode
  • move files to tests/utils
  • use real filesystem instead of custom mock

@9romise 9romise changed the title refactor(tests): use jest-mock-vscode and reorganize test structure refactor(tests): use jest-mock-vscode and reorganize test structure Feb 18, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

Warning

Rate limit exceeded

@9romise has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 50 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📝 Walkthrough

Walkthrough

This PR removes the mocked filesystem test infrastructure and updates test imports. It deletes tests/__mocks__/filesystem.ts and the tests/filesystem.test.ts suite, refactors tests/__mocks__/vscode.ts to export a wider set of VS Code symbols via a single destructured vscode export, adjusts multiple test import paths (e.g. memoize, package, version), and updates tests/utils/resolve.test.ts to use real filesystem URIs (Uri.joinPath) instead of the removed mockFileSystem.

Possibly related PRs

🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description accurately reflects the changeset, documenting three key modifications: re-exporting VS Code API from jest-mock-vscode, reorganising test files, and replacing custom filesystem mock with real filesystem.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/test

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

@9romise 9romise merged commit 1dd6915 into main Feb 18, 2026
9 checks passed
@9romise 9romise deleted the refactor/test branch February 18, 2026 06:56
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.

1 participant

Comments