Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytebase/bytebase
/ guard.test.ts
File
guard.test.ts
frontend/src/react/router/guard.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ matchRoutes } from
"react-router-dom"
;
2
import
{ beforeEach, describe, expect, test, vi } from
"vitest"
;
3
4
// Configurable fake session, controlled per test.
Callers
nothing calls this directly
Calls
8
setRouteNameIndex
Function · 0.90
buildSigninRedirectQuery
Function · 0.90
beforeEach
Function · 0.85
test
Struct · 0.85
location
Function · 0.85
runCatchAllLoader
Function · 0.85
run
Function · 0.70
get
Method · 0.45
Tested by
no test coverage detected