MCPcopy Index your code
hub / github.com/zenstackhq/zenstack / createPolicyApp

Function createPolicyApp

packages/cli/test/proxy.test.ts:62–72  ·  view source on GitHub ↗
(zmodel: string)

Source from the content-addressed store, hash-verified

60}
61
62async function createPolicyApp(zmodel: string) {
63 const client = await createTestClient(zmodel);
64 const authDb = client.$use(new PolicyPlugin());
65 return {
66 client,
67 app: createProxyApp(client, client.$schema, authDb, {
68 studioAuthKey: TEST_PUBLIC_KEY,
69 signatureToleranceSecs: 60,
70 }),
71 };
72}
73
74// ─── Test suite ───────────────────────────────────────────────────────────────
75

Callers 1

proxy.test.tsFile · 0.85

Calls 3

createTestClientFunction · 0.90
createProxyAppFunction · 0.90
$useMethod · 0.80

Tested by

no test coverage detected