tsupConfig.test.ts 514 B

123456789101112
  1. import { describe, expect, it } from "vitest";
  2. import { SERVER_CLI_DEFINES } from "../tsup.config.js";
  3. import { loadBuiltinProviderConfig } from "../../../scripts/builtin-provider-config.mjs";
  4. describe("server cli tsup config", () => {
  5. it("embeds the selected environment's Built-in config used by Server Core", async () => {
  6. const expected = await loadBuiltinProviderConfig();
  7. expect(JSON.parse(SERVER_CLI_DEFINES.__ZCODE_BUILTIN_PROVIDER_CONFIG_JSON__)).toBe(
  8. expected.content,
  9. );
  10. });
  11. });