Skip to content

fix(core): exclude .stryker-tmp from vitest test discovery - #102

Merged
Mearman merged 1 commit into
mainfrom
fix/vitest-exclude-stryker-tmp
Sep 14, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/vitest-exclude-stryker-tmp

Conversation

@Mearman

@Mearman Mearman commented Sep 14, 2026

Copy link
Copy Markdown
Member

Two parallel mutation-testing fix-up runs both hit `pnpm test` failing via the pre-push hook while their own Stryker sandbox (`.stryker-tmp/sandbox-*/`) existed on disk in the same worktree -- vitest's default discovery glob picked up the sandbox's own nested copy of Playwright's e2e suite, since the existing `src/bridges/user/web/e2e/` exclude only matches the real path, not the `.stryker-tmp`-prefixed one. Adds `.stryker-tmp/` to vitest's exclude list, matching the identical exclusion eslint.config.ts and stryker.config.ts already carry for the same reason.

vitest's default test-file glob picked up Playwright's own e2e suite
inside Stryker's instrumented sandbox copies under .stryker-tmp/
sandbox-*/, since the existing e2e exclude pattern only matches the
real src/ path, not this prefixed one. Running pnpm test (e.g. via
the pre-push hook) while a mutation run's sandbox exists on disk
therefore failed on test.describe() being called outside a Playwright
config. Matches the same exclusion eslint.config.ts and stryker.
config.ts's own ignorePatterns already carry.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-14T07:20:21.838026Z 56961a2 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 4d329ae into main Sep 14, 2026
6 checks passed
@Mearman
Mearman deleted the fix/vitest-exclude-stryker-tmp branch September 14, 2026 07:20
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.21.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant