MCPcopy 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

1import { matchRoutes } from "react-router-dom";
2import { beforeEach, describe, expect, test, vi } from "vitest";
3
4// Configurable fake session, controlled per test.

Callers

nothing calls this directly

Calls 8

setRouteNameIndexFunction · 0.90
buildSigninRedirectQueryFunction · 0.90
beforeEachFunction · 0.85
testStruct · 0.85
locationFunction · 0.85
runCatchAllLoaderFunction · 0.85
runFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected