Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "@suaveplan/testing/runner";
const pkg = JSON.parse(
readFileSync(new URL("../package.json", import.meta.url), "utf8")
) as { exports: Record<string, unknown>; sideEffects: boolean };
describe("exports — subpath surface", () => {
it("every feature module has a subpath export entry", {
timeout: 5000,
}, () => {
const expected = [
".",
"./detector/beat-detector",
"./algorithms/energy-odf",
"./algorithms/spectral-flux",
"./algorithms/comb-tempo",
"./algorithms/beat-grid",
"./error-codes",
];
for (const key of expected) {
expect(pkg.exports[key]).toBeDefined();
}
});
it("sideEffects is false", { timeout: 5000 }, () => {
expect(pkg.sideEffects).toBe(false);
});
});