MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / asFixturePlugins

Function asFixturePlugins

packages/core/config/src/load-plugins.test.ts:27–32  ·  view source on GitHub ↗
(plugins: readonly AnyPlugin[] | null)

Source from the content-addressed store, hash-verified

25}
26
27const asFixturePlugins = (plugins: readonly AnyPlugin[] | null): readonly FixturePlugin[] => {
28 // Fixture servers return shapes wider than AnyPlugin (they carry
29 // __optionsReceived for test assertions); narrow once here.
30 // oxlint-disable-next-line executor/no-double-cast
31 return plugins as unknown as readonly FixturePlugin[];
32};
33
34const writeJsonc = (name: string, body: string): string => {
35 const dir = fs.mkdtempSync(path.join(TMP_ROOT, `${name}-`));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected