test(FN-4486): complete Step 4 — add plugin-sdk re-export contract test
Fusion-Task-Id: FN-4486 Fusion-Task-Lineage: 7d3b40b2-883f-450c-96ec-796f8af4fa45
This commit is contained in:
18
packages/plugin-sdk/src/__tests__/re-export-contract.test.ts
Normal file
18
packages/plugin-sdk/src/__tests__/re-export-contract.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { describe, expectTypeOf, it } from "vitest";
|
||||
import type {
|
||||
FusionPlugin,
|
||||
PluginInstallation,
|
||||
PluginSetupHooks,
|
||||
PluginSetupManifest,
|
||||
PluginState,
|
||||
} from "../index.js";
|
||||
|
||||
describe("plugin-sdk re-export contract", () => {
|
||||
it("re-exports the plugin-setup and lifecycle types from @fusion/core", () => {
|
||||
expectTypeOf<PluginSetupHooks>().not.toBeAny();
|
||||
expectTypeOf<PluginSetupManifest>().not.toBeAny();
|
||||
expectTypeOf<FusionPlugin>().not.toBeAny();
|
||||
expectTypeOf<PluginState>().not.toBeAny();
|
||||
expectTypeOf<PluginInstallation>().not.toBeAny();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user