MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / setup

Function setup

console/src/test/sql/sql.setup.ts:14–25  ·  view source on GitHub ↗
({
  provide,
}: {
  provide: <T extends keyof ProvidedContext>(
    key: T,
    value: ProvidedContext[T],
  ) => void;
})

Source from the content-addressed store, hash-verified

12import { getMaterializeEndpoints } from "./mzcompose";
13
14export async function setup({
15 provide,
16}: {
17 provide: <T extends keyof ProvidedContext>(
18 key: T,
19 value: ProvidedContext[T],
20 ) => void;
21}) {
22 // Cache these values to be used in the tests
23 const value = await getMaterializeEndpoints();
24 provide("materializeEndpoints", value);
25}

Callers

nothing calls this directly

Calls 1

getMaterializeEndpointsFunction · 0.90

Tested by

no test coverage detected