mirror of
https://github.com/thedotmack/claude-mem
synced 2026-04-25 17:15:04 +02:00
Top-level mock.module() in context-reinjection-guard.test.ts permanently stubbed getProjectName() to 'test-project' for the entire Bun worker process, causing tests in other files to receive the wrong value. Removed the unnecessary mock (session-init tests don't assert on project name), added bunfig.toml smol=true for worker isolation, and added a regression test. Generated by Claude Code Vibe coded by ousamabenyounes Co-Authored-By: Claude <noreply@anthropic.com>
8 lines
335 B
TOML
8 lines
335 B
TOML
[test]
|
|
# Force each test file into its own worker process.
|
|
# Prevents mock.module() calls (which are permanent within a worker)
|
|
# from leaking across test files in parallel runs.
|
|
# Note: smol=true increases test startup time by spawning one Bun process per file.
|
|
# See: https://github.com/thedotmack/claude-mem/issues/1299
|
|
smol = true
|