Skip to content

test:e2e:smoke finds no test files on Windows (unexpanded glob) #187

Description

@debugmcpdev

What happened

On Windows (PowerShell/cmd), pnpm run test:e2e:smoke fails with:

Running tests with seed "..."
No test files found, exiting with code 1
 ELIFECYCLE  Command failed with exit code 1.

The script is vitest run tests/e2e/mcp-server-smoke*.test.ts (package.json). Under cmd.exe (pnpm's default script shell on Windows) the * is never glob-expanded, and vitest treats the argument as a literal file filter that matches nothing. Under bash the shell expands it and everything works — which is why CI (ubuntu) and Git Bash users never see this.

Also note: the glob mcp-server-smoke*.test.ts names a bare tests/e2e/mcp-server-smoke.test.ts that does not exist; all smoke files have language/transport suffixes. Harmless with shell expansion, but worth tidying while fixing.

Repro

pnpm run test:e2e:smoke   # from PowerShell on Windows

Suggested fix

Quote the pattern so vitest's own glob handling (tinyglobby) does the expansion consistently on every platform, e.g.

"test:e2e:smoke": "vitest run \"tests/e2e/mcp-server-smoke*.test.ts\""

or switch to a directory/regex filter that needs no shell expansion.

Found while verifying #183 (PR #185) on a Windows dev box — pre-existing, unrelated to that change.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions