Initial Commit
This commit is contained in:
39
packages/api-stack/api/api-manifest/tests/subpaths.test.ts
Normal file
39
packages/api-stack/api/api-manifest/tests/subpaths.test.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { describe, expect, it } from "@suaveplan/testing/runner";
|
||||
|
||||
import * as cap from "../src/capability-resolver/index.js";
|
||||
import * as depGraph from "../src/dep-graph/index.js";
|
||||
import * as errorCodes from "../src/error-codes/index.js";
|
||||
import * as hash from "../src/hash/index.js";
|
||||
import * as root from "../src/index.js";
|
||||
import * as parse from "../src/parse/index.js";
|
||||
import * as schema from "../src/schema/index.js";
|
||||
import * as testing from "../src/testing/index.js";
|
||||
import * as validators from "../src/validators/index.js";
|
||||
|
||||
describe("every documented subpath is importable", () => {
|
||||
it("subpath barrels expose their public surface", { timeout: 5000 }, () => {
|
||||
expect(typeof schema.pluginManifestSchema.parse).toBe("function");
|
||||
expect(typeof parse.parseManifest).toBe("function");
|
||||
expect(typeof parse.parseManifestSafe).toBe("function");
|
||||
expect(typeof validators.validateSagaOwnership).toBe("function");
|
||||
expect(typeof validators.validateOpenApiRequiresGraphqlOrRoutes).toBe(
|
||||
"function"
|
||||
);
|
||||
expect(typeof validators.validatePermissionsWhenSandboxed).toBe(
|
||||
"function"
|
||||
);
|
||||
expect(typeof validators.validateErrorStatusMapShape).toBe("function");
|
||||
expect(typeof depGraph.resolveInstallOrder).toBe("function");
|
||||
expect(typeof depGraph.satisfies).toBe("function");
|
||||
expect(typeof cap.resolveCapabilities).toBe("function");
|
||||
expect(typeof hash.hashManifest).toBe("function");
|
||||
expect(typeof hash.canonicalJson).toBe("function");
|
||||
expect(typeof errorCodes.MANIFEST_CODES).toBe("object");
|
||||
expect(typeof testing.runManifestConformance).toBe("function");
|
||||
expect(typeof testing.MINIMAL_FIXTURE).toBe("object");
|
||||
expect(typeof testing.MAXIMAL_FIXTURE).toBe("object");
|
||||
// root barrel
|
||||
expect(typeof root.parseManifest).toBe("function");
|
||||
expect(typeof root.MANIFEST_CODES).toBe("object");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user