spyOn(console, 'log') accumulates calls across test files in bun:test. Add mockClear() after spy creation to prevent cross-file contamination when run in the same bun test batch as completion.test.ts.