test: harden package boundaries and audit budgets
Quality / quality (ubuntu-latest) (push) Failing after 9m52s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-24 12:05:20 +05:30
parent 613ff7ae5b
commit b3c93e9b18
12 changed files with 115 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@wrnexus/syntax",
"version": "0.8.15",
"version": "0.8.16",
"type": "module",
"main": "src/index.ts",
"exports": {
@@ -26,3 +26,10 @@ test("api entries normalize methods and reject malformed request fields", () =>
parseApiSections("request { body { missingType } } response { return data }"),
).toThrow('Expected "name: type"');
});
test("api entries reject truncated blocks and bare response bodies", () => {
expect(() => parseApiEntries("lookup GET /users { response { return data }")).toThrow();
expect(() => parseApiEntries("lookup GET /users { return data }")).toThrow(
'declare a "response { }" section',
);
});