Initial Commit
This commit is contained in:
23
packages/media/audio/audio-transport/tests/exports.test.ts
Normal file
23
packages/media/audio/audio-transport/tests/exports.test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user