Files
2026-05-27 23:47:53 +01:00

25 lines
883 B
TypeScript

import { describe, expect, it } from "@suaveplan/testing/runner";
import * as clientBarrel from "../src/client/index.js";
import * as root from "../src/index.js";
import * as typesBarrel from "../src/types/index.js";
describe("audio-fingerprint exports", () => {
it("barrel re-exports the client and types", { timeout: 5000 }, () => {
expect(typeof root.PythonAudioService).toBe("function");
});
it("client subpath re-exports PythonAudioService", {
timeout: 5000,
}, () => {
expect(clientBarrel.PythonAudioService).toBe(root.PythonAudioService);
});
it("types subpath barrel is loadable (no runtime exports)", {
timeout: 5000,
}, () => {
// Types are erased at runtime; the barrel module exists but has
// no own enumerable runtime keys.
expect(Object.keys(typesBarrel)).toEqual([]);
});
});