Skip to content
Myr

workers-shim.ts

This file

Path

apps/web/test/workers-shim.ts

8 lines · 373 bytes · TypeScript

Last changed by

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

lines 1–2why, one step back
1// `vitest.config.ts` aliases `cloudflare:workers` here so a route module loads outside workerd;
2// its `PLATFORM` throws when touched, so a test that reaches the platform passes its own env.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 3–8why, one step back
3import { untouchable } from "@repo/testkit/untouchable";
45export const env: Env = {6 PLATFORM: untouchable<Fetcher>("PLATFORM"),7 PUBLIC_PLATFORM_URL: "http://localhost:8787",8};