test(mcp): remove arbitrary schema inventory thresholds

This commit is contained in:
morluto
2026-10-09 23:17:17 +08:00
parent 765e809e36
commit 24673aaae4
@@ -54,11 +54,6 @@ it("advertises portable NUL escapes and patterns that compile in all JS modes",
collectPatterns(tool.outputSchema, "outputSchema", tool.name, patterns);
}
// A traversal that silently collapses would make the compilation check below
// vacuous, so the inventory itself is asserted.
expect(advertised.length).toBeGreaterThan(100);
expect(patterns.length).toBeGreaterThan(500);
// Annex B and `u` mode accept an unescaped `-`, `/` or `[` inside a character
// class, so REA's own schema validation cannot observe the defect. `v` mode
// rejects them, and a client that compiles advertised patterns rejects the