Add comprehensive resolver integration tests for oxc-resolver validation#6770
Closed
Add comprehensive resolver integration tests for oxc-resolver validation#6770
Conversation
Contributor
How to use the Graphite Merge QueueAdd the label graphite: merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
✅ Deploy Preview for rolldown-rs canceled.
|
Add integration tests for oxc-resolver functionality including: - Conditional exports (import/require) - Subpath exports with wildcards - Self-referencing packages - TypeScript extensionless imports (.js -> .ts, .mjs -> .mts) - Browser field resolution - Nested conditional exports These tests validate expected resolver behavior and serve as regression tests for future oxc-resolver improvements. Co-authored-by: shulaoda <[email protected]>
Add comprehensive documentation explaining the purpose and structure of the new resolver integration tests. Co-authored-by: shulaoda <[email protected]>
Copilot
AI
changed the title
[WIP] Add integration tests for Rolldown test suite
Add comprehensive resolver integration tests for oxc-resolver validation
Oct 30, 2025
shulaoda
added a commit
that referenced
this pull request
Nov 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets up integration test suite for oxc-resolver functionality to support manual testing requirements from oxc-project/oxc-resolver#790.
Tests Added
Five integration tests covering common resolver scenarios:
oxc_resolver_integration- Conditional exports (import/require/default), subpath exports, nested platform conditionspackage_exports_wildcard- Wildcard patterns (./features/*,./utils/*) in package.json exportsself_referencing_package- Packages importing from themselves via exports fieldextensionless_typescript- Extension rewriting (.js→.ts,.mjs→.mts) for esbuild compatibilitybrowser_field_resolution- Platform-specific entry points (browser vs node)Structure
Each test follows standard Rolldown fixture pattern with mock
node_modulespackages and executable assertions:All tests currently pass with oxc-resolver 11.11.1. Ready to validate future resolver improvements or mark expected behavior for #790 changes.
Documentation:
RESOLVER_TESTS.mdandcrates/rolldown/tests/rolldown/resolve/README.mdWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/oxc-project/oxc-resolver/pulls/790curl -s REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.