feat: establish TypeScript-aware frontend tooling
This commit is contained in:
@@ -31,6 +31,7 @@ describe("HTTP runtime schema boundary", () => {
|
||||
success: true,
|
||||
data: [{ id: "resource-1", additive: "accepted" }],
|
||||
});
|
||||
if (!result.success) throw new Error("expected valid sample payload");
|
||||
expect(result.data).not.toBe(source);
|
||||
});
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ describe("runtime configuration boundary", () => {
|
||||
[{ ...validConfig, TELEMETRY_ENABLED: "false" }, "ambiguous boolean"],
|
||||
[{ ...validConfig, CONFIG_SCHEMA_VERSION: "next" }, "version"],
|
||||
[{ ...validConfig, UNKNOWN_KEY: true }, "unknown key"],
|
||||
])("rejects invalid config: %s (%s)", (candidate) => {
|
||||
])("rejects invalid config: %s (%s)", (candidate, _reason) => {
|
||||
void _reason;
|
||||
expect(validateRuntimeConfig(candidate).success).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user