Skip to content

fix: make the tests pass on Windows - #1279

Open
btea wants to merge 2 commits into
nodejs:mainfrom
btea:fix/windows-tests
Open

btea wants to merge 2 commits into
nodejs:mainfrom
btea:fix/windows-tests

Conversation

@btea

@btea btea commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Description

  • typedoc: TypeDoc's entry point globs reject Windows path separators, so the fixture tests converted 0 entry points; join their paths with forward slashes
  • core: importFromURL parsed an absolute Windows path as a URL with the drive letter as its protocol, which import() rejects; check for an absolute path first
  • core: the GitHub logger transport test expected "\n", but the transport ends its lines with os.EOL; expect EOL
  • react: mock.module could not match the Windows path core.resolve returns, so the shiki/langs mock silently did not apply; pass it a file: URL

Validation

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run node --run test and all tests passed.
  • I have check code formatting with node --run format:check & node --run lint.
  • I've covered new added functionality with unit tests if necessary.

@btea
btea requested a review from a team as a code owner December 3, 2026 06:10
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs-tooling Ready Ready Preview Dec 3, 2026 11:29pm UTC

Request Review

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.99%. Comparing base (8c951de) to head (e765f62).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
packages/core/src/utils/loaders.mjs 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1279      +/-   ##
==========================================
- Coverage   93.99%   93.99%   -0.01%     
==========================================
  Files         301      301              
  Lines       31520    31533      +13     
  Branches     3216     3217       +1     
==========================================
+ Hits        29627    29638      +11     
- Misses       1871     1873       +2     
  Partials       22       22              

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

api-links Generator

Performance estimate (single CI run)

  • Generation time: 160.2% slower (980.00 ms → 2.55 s)
  • Peak memory: 0.5% lower (281.59 MB → 280.23 MB)

json Generator

Performance estimate (single CI run)

  • Generation time: 34.3% slower (6.96 s → 9.35 s)
  • Peak memory: 0.1% higher (909.04 MB → 909.93 MB)

legacy-html Generator

Performance estimate (single CI run)

  • Generation time: 22.2% faster (15.65 s → 12.18 s)
  • Peak memory: 0.9% higher (1.36 GB → 1.37 GB)

legacy-json Generator

Performance estimate (single CI run)

  • Generation time: 51.4% slower (5.47 s → 8.28 s)
  • Peak memory: 11.9% lower (988.39 MB → 870.77 MB)

llms-txt Generator

Performance estimate (single CI run)

  • Generation time: 27.5% slower (6.44 s → 8.21 s)
  • Peak memory: 1.3% higher (861.85 MB → 873.30 MB)

orama-db Generator

Performance estimate (single CI run)

  • Generation time: 23.6% slower (6.77 s → 8.37 s)
  • Peak memory: 5.2% higher (946.04 MB → 995.18 MB)

web Generator

Performance estimate (single CI run)

  • Generation time: 0.7% faster (21.38 s → 21.24 s)
  • Peak memory: 2.8% lower (1.70 GB → 1.65 GB)

Comment thread packages/core/src/utils/loaders.mjs Resolved
Comment thread packages/core/src/utils/loaders.mjs Resolved

@ovflowd ovflowd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

SGTM, but left a few comments.

This branch was successfully deployed

1 active deployment
Preview – api-docs-tooling — e765f62b Deployed Dec 3, 2026 by vercel[bot]
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.

2 participants