Skip to content

docs-accuracy.test.ts fails on Windows: page paths use backslashes #131

Closed

Description

@FabioHAraujo

Bug

packages/ui/tests/docs-accuracy.test.ts (added in #125) fails on Windows, which blocks bun run validate and the pre-push gate there:

(fail) docs <Props> tables > targets only exported components (use for="A, B" or for="none" when the title does not name one)
(fail) docs <Props> tables > documents only props the component has
(fail) docs links > resolves every /docs/ link and #anchor in the prose
 8 pass
 3 fail

Every page is reported, e.g. "charts\index.mdx: /docs/charts/line/ (no such page)".

Cause

rel: relative(DOCS, file) gives charts\index.mdx on Windows. The test derives page slugs and component titles from rel, so no /docs/... link or <Props> title matches.

Fix

Normalize rel to forward slashes (.replaceAll("\\", "/")), as #88 did for the other unit tests.

Activity

  1. added
    bugSomething isn't working
    in progressSomeone is working on it (see the linked draft PR)
    on Oct 15, 2026
  2. self-assigned this
    on Oct 15, 2026
  3. FabioHAraujo commented on Oct 15, 2026

    @FabioHAraujo
    CollaboratorAuthor

    Working on this in #132 (draft). Branch fix/131-docs-accuracy-test-ts-fails-on. Regression test first, then the fix.

  4. removed
    in progressSomeone is working on it (see the linked draft PR)
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions