Skip to content

chore: remove test and JS-side leftovers#1271

Merged
Boshen merged 2 commits into
mainfrom
chore/test-js-leftovers
Jul 2, 2026
Merged

chore: remove test and JS-side leftovers#1271
Boshen merged 2 commits into
mainfrom
chore/test-js-leftovers

Conversation

@Boshen

@Boshen Boshen commented Jul 2, 2026

Copy link
Copy Markdown
Member

Small leftovers found while sweeping the test suite and the JS side:

  • src/tests/resolve.rs: the "file in module with query and fragment" table row appeared twice, byte-identical — the upstream enhanced-resolve resolve.test.js has the case exactly once, so the second row was a copy-paste in the port. The loop just ran the same assertion twice.
  • src/tests/alias.rs: #[allow(clippy::too_many_lines)] no longer suppresses anything (verified by removing it and running the CI clippy command). The same allow in imports_field.rs is still load-bearing (1191/100) and stays.
  • vite.config.ts: "napi/browser.js" was listed twice in fmt.ignorePatterns.
  • napi/test.mjs: removed a stale comment about a .ts extension next to code that adds .mjs and resolves an already-suffixed specifier.
  • napi/webcontainer-fallback.js: removed an inert lint directive (// eslint-disable-next-line: no-console) — the project lints with oxlint, the syntax is invalid even for ESLint, and no-console isn't enabled.

Part of a second cleanup pass; follows #1264#1268.

- Delete a byte-identical duplicated row in the resolve() test table
  (the upstream enhanced-resolve test has the case exactly once).
- Drop a `clippy::too_many_lines` allow in the alias test that no
  longer suppresses anything.
- Dedupe a repeated "napi/browser.js" fmt ignore entry, remove a
  stale copy-pasted comment in napi/test.mjs, and an inert
  eslint-disable directive in webcontainer-fallback.js.
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.04%. Comparing base (3e88f90) to head (883ff6f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1271   +/-   ##
=======================================
  Coverage   94.04%   94.04%           
=======================================
  Files          21       21           
  Lines        4267     4267           
=======================================
  Hits         4013     4013           
  Misses        254      254           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4522690a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tests/alias.rs
@codspeed-hq

codspeed-hq Bot commented Jul 2, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚡ 1 improved benchmark
❌ 3 regressed benchmarks
✅ 17 untouched benchmarks
⏩ 5 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
pm/pnpm-hoisted 1 ms 1.1 ms -4.89%
pm/yarn-isolated 1 ms 1.1 ms -4.79%
pm/bun-flat 922.9 µs 960.1 µs -3.88%
resolver_memory[multi-thread] 263.3 µs 248.1 µs +6.16%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing chore/test-js-leftovers (883ff6f) with main (3e88f90)

Open in CodSpeed

Footnotes

  1. 5 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Boshen
Boshen merged commit 28a487b into main Jul 2, 2026
18 checks passed
@Boshen
Boshen deleted the chore/test-js-leftovers branch July 2, 2026 08:32
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