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

Function loadDocumentWithPlugins

packages/testtools/src/utils.ts:3–6  ·  view source on GitHub ↗
(filePath: string, extraPluginModelFiles: string[] = [])

Source from the content-addressed store, hash-verified

1import { loadDocument } from '@zenstackhq/language';
2
3export function loadDocumentWithPlugins(filePath: string, extraPluginModelFiles: string[] = []) {
4 const pluginModelFiles = [require.resolve('@zenstackhq/plugin-policy/plugin.zmodel'), ...extraPluginModelFiles];
5 return loadDocument(filePath, pluginModelFiles);
6}

Callers 5

createTestClientFunction · 0.90
generateTsSchemaFunction · 0.90
generateTsSchemaInPlaceFunction · 0.90
loadSchemaFunction · 0.90
loadSchemaWithErrorFunction · 0.90

Calls 2

loadDocumentFunction · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected