Skip to content

CLI tests fail on Windows due to path separator differences #1280

@mukund-2114

Description

@mukund-2114

Summary

On Windows, pnpm -C packages/cli test fails due to path separator differences (backslashes vs forward slashes) in a few tests.

Steps to Reproduce

  1. pnpm install
  2. pnpm -C packages/cli test

Actual

Tests fail in:

  • packages/cli/src/cli/utils/buckets.spec.ts
  • packages/cli/src/cli/utils/find-locale-paths.spec.ts

Expected

Tests pass on all OSes.

Proposed Fix

Normalize path strings in test assertions (convert \ to /) so comparisons are OS-agnostic.

Env

Windows 11, Node v22.19.0, pnpm 9.12.3

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions