MCPcopy Create free account
hub / github.com/af/envalid / assertPassthrough

Function assertPassthrough

tests/utils.ts:6–8  ·  view source on GitHub ↗
(env: T, spec: { [k in keyof T]: ValidatorSpec<any> })

Source from the content-addressed store, hash-verified

4// Ensure that a given environment spec passes through all values from the given
5// env object
6export const assertPassthrough = <T>(env: T, spec: { [k in keyof T]: ValidatorSpec<any> }) => {
7 expect(cleanEnv(env, spec)).toEqual(env)
8}

Callers 2

validators.test.tsFile · 0.90
basics.test.tsFile · 0.90

Calls 1

cleanEnvFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…