Skip to content

Commit 5f8e4ed

Browse files
committed
fix(test): correct output-threat-feed mock path for serializeResultJson
Update mock path from ../../utils/serialize/result-json.mts to ../../utils/output/result-json.mts to match actual implementation
1 parent 70eb334 commit 5f8e4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/commands/threat-feed/output-threat-feed.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vi.mock('../../utils/error/fail-msg-with-badge.mts', () => ({
1818
failMsgWithBadge: vi.fn((msg, cause) => `${msg}: ${cause}`),
1919
}))
2020

21-
vi.mock('../../utils/serialize/result-json.mts', () => ({
21+
vi.mock('../../utils/output/result-json.mts', () => ({
2222
serializeResultJson: vi.fn(result => JSON.stringify(result)),
2323
}))
2424

@@ -90,7 +90,7 @@ describe('outputThreatFeed', () => {
9090
it('outputs JSON format for successful result', async () => {
9191
const { logger } = await import('@socketsecurity/lib/logger')
9292
const { serializeResultJson } = await import(
93-
'../../utils/serialize/result-json.mts'
93+
'../../utils/output/result-json.mts'
9494
)
9595
const mockLog = vi.mocked(logger.log)
9696
const mockSerialize = vi.mocked(serializeResultJson)

0 commit comments

Comments
 (0)