File size: 448 Bytes
fc93158 | 1 2 3 4 5 6 7 8 9 10 11 12 | import { describe, expectTypeOf, it } from "vitest";
import { createPluginRuntime } from "./index.js";
import type { PluginRuntime } from "./types.js";
describe("plugin runtime type contract", () => {
it("createPluginRuntime returns the declared PluginRuntime shape", () => {
const runtime = createPluginRuntime();
expectTypeOf(runtime).toMatchTypeOf<PluginRuntime>();
expectTypeOf<PluginRuntime>().toMatchTypeOf(runtime);
});
});
|