Repository navigation
Fix vacuous package root lookup tests - #2191
Conversation
Metro review: Looks goodRisk: low · Commit: This is a test-only change. Since #2174, the resolver test context ( No findings. Verified
Not run: No benchmarks or Windows runs: the change is test-only and platform-neutral. No typecheck: only object literals with an existing boolean field changed. I looked at the third comparison test ('package subpath makes no more lookups if package exports are disabled'). The default doesn't affect it, because the option only takes effect when package exports are enabled. Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
Summary
Since #2174,
unstable_resolveExportsFromPackageRootdefaults totruein the resolver test context, so the baseline in twopackage-scope-test.jstests already had the option enabled. Each compared lookups with the option on against lookups with the option on, and could not fail.The baseline now sets
unstable_resolveExportsFromPackageRoot: falseexplicitly, restoring the off vs. on comparison.Changelog: [Internal]
Test plan