Skip to content

Commit 2bbee5e

Browse files
committed
test: suppress expected console errors in dependency analysis
1 parent b83b845 commit 2bbee5e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/unit/server/utils/dependency-analysis.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ describe('dependency-analysis', () => {
7676
})
7777

7878
it('tracks failed queries when OSV batch API fails', async () => {
79+
// Suppress expected console output from error path
80+
vi.spyOn(console, 'warn').mockImplementation(() => {})
81+
vi.spyOn(console, 'error').mockImplementation(() => {})
82+
7983
const mockResolved = new Map([
8084
[
8185
'test-pkg@1.0.0',

0 commit comments

Comments
 (0)