env.test-d.ts
This file
Path
apps/platform/test/env.test-d.ts
15 lines · 548 bytes · TypeScript
Last changed by
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
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 1–15why, one step back1import { describe, expectTypeOf, it } from "vitest";23describe("the platform Worker's Env", () => {4 it("holds the public namespace and the private one", () => {5 expectTypeOf<Env>().toHaveProperty("ARTIFACTS");6 expectTypeOf<Env>().toHaveProperty("ARTIFACTS_PRIVATE");7 expectTypeOf<Env["ARTIFACTS_PRIVATE"]>().toEqualTypeOf<Env["ARTIFACTS"]>();8 });910 it("holds no other Artifacts binding", () => {11 expectTypeOf<Extract<keyof Env, `ARTIFACTS${string}`>>().toEqualTypeOf<12 "ARTIFACTS" | "ARTIFACTS_PRIVATE"13 >();14 });15});