Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ useAgentLogs.test.ts
File
useAgentLogs.test.ts
site/src/modules/resources/useAgentLogs.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ renderHook, waitFor } from
"@testing-library/react"
;
2
import
{ act } from
"react"
;
3
import
{ toast } from
"sonner"
;
4
import
type
{ MockInstance } from
"vitest"
;
Callers
nothing calls this directly
Calls
4
mountHook
Function · 0.85
generateMockLogs
Function · 0.85
publishMessage
Method · 0.80
publishError
Method · 0.80
Tested by
no test coverage detected