Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ oauth.test.ts
File
oauth.test.ts
apps/sim/lib/oauth/oauth.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createEnvMock, createMockFetch } from
'@sim/testing'
2
import
{ describe, expect, it, vi } from
'vitest'
3
4
vi.mock(
'@/lib/core/config/env'
, () =>
Callers
nothing calls this directly
Calls
8
createEnvMock
Function · 0.90
createMockFetch
Function · 0.90
refreshOAuthToken
Function · 0.90
withMockFetch
Function · 0.85
parse
Method · 0.80
replace
Method · 0.65
get
Method · 0.65
toString
Method · 0.45
Tested by
no test coverage detected