17 lines
531 B
TypeScript
17 lines
531 B
TypeScript
import { describe, expect, it } from "@suaveplan/testing/runner";
|
|
|
|
describe("dep-graph", () => {
|
|
it("only depends on allowed @suaveplan packages", {
|
|
timeout: 5000,
|
|
}, async () => {
|
|
const pkg = await import("../package.json");
|
|
const deps = Object.keys(pkg.default.dependencies || {});
|
|
const allowed = ["@suaveplan/colours"];
|
|
for (const dep of deps) {
|
|
if (dep.startsWith("@suaveplan/")) {
|
|
expect(allowed).toContain(dep);
|
|
}
|
|
}
|
|
});
|
|
});
|