Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lingodotdev/lingo.dev
/ utils.spec.ts
File
utils.spec.ts
packages/react/src/rsc/utils.spec.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, it, expect, vi, beforeEach } from
"vitest"
;
2
3
const
cookiesSetSpy = vi.fn();
4
vi.mock(
"next/headers"
, () => {
Callers
nothing calls this directly
Calls
4
loadLocaleFromHeaders
Function · 0.90
loadLocaleFromCookies
Function · 0.90
setLocaleInCookies
Function · 0.90
loadDictionaryFromRequest
Function · 0.90
Tested by
no test coverage detected