1
0

feat: ValueMatcher 支持 primitive 原始值简写,等价于 { equals: value }

This commit is contained in:
2026-05-19 17:07:47 +08:00
parent 8d8549d07f
commit 12cd05b04e
37 changed files with 1836 additions and 1022 deletions

View File

@@ -213,12 +213,12 @@ describe("validateUdpConfig", () => {
expect(issues.some((i) => i.path.includes("responded") && i.message.includes("响应来源"))).toBe(true);
});
it("reports invalid-type for non-matcher expect.durationMs", () => {
it("reports invalid-type for array shorthand expect.durationMs", () => {
const issues = validateUdpConfig(
makeInput({
targets: [
{
expect: { durationMs: -100 },
expect: { durationMs: [1, 2] },
id: "test",
type: "udp",
udp: { host: "127.0.0.1", port: 53 },