24 lines
743 B
TypeScript
24 lines
743 B
TypeScript
import { describe, expect, it } from "@suaveplan/testing/runner";
|
|
import packageJson from "../package.json";
|
|
|
|
describe("package exports", () => {
|
|
it("every feature module has a subpath export entry", {
|
|
timeout: 5000,
|
|
}, () => {
|
|
const subpaths = Object.keys(packageJson.exports).filter(
|
|
(k) => k.startsWith("./") && k !== "./package.json" && k !== "."
|
|
);
|
|
const expected = [
|
|
"./transport/transport",
|
|
"./scheduler/scheduler",
|
|
"./tick-source/tick-source",
|
|
"./signal/signal",
|
|
"./time/time",
|
|
"./error-codes",
|
|
];
|
|
for (const exp of expected) {
|
|
expect(subpaths).toContain(exp);
|
|
}
|
|
});
|
|
});
|