/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/src/setup/__tests__/setupFormKitRuntime.spec.ts
18 строк
719 B
Ryan Wang
Support ESM UI plugins and themes (#10213)
07 авг 2026, 18:49
Не верифицирован
07 авг 2026, 18:49
ac256d3
Код
Авторство
О чём код?
import * as FormKitCore from "@formkit/core"; import * as FormKitVue from "@formkit/vue"; import { describe, expect, it } from "vite-plus/test"; import "../setupFormKitRuntime"; describe("FormKit shared runtime", () => { it("exposes Vue and Core from the host's single module graph", () => { const runtime = globalThis as typeof globalThis & { FormKitCore: typeof FormKitCore; FormKitVue: typeof FormKitVue; }; expect(runtime.FormKitCore.getNode).toBe(FormKitCore.getNode); expect(runtime.FormKitCore.submitForm).toBe(FormKitCore.submitForm); expect(runtime.FormKitCore.reset).toBe(FormKitCore.reset); expect(runtime.FormKitVue.submitForm).toBe(FormKitVue.submitForm); }); });