fix: meta-only-response test used toSorted, banned by the ES2022 lib floor (#537)

This commit is contained in:
Ben Senescu 2026-08-26 10:37:50 -04:00 committed by GitHub
parent 0311e72a96
commit a1c6eb6b11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
import { readFileSync, readdirSync } from "node:fs";
import { join } from "node:path";
import { identity, sortBy } from "remeda";
import { describe, expect, it, vi } from "vitest";
import { objectSchema } from "@/server/mcp/output-schemas";
@ -140,7 +141,7 @@ function toolsReturningMetaOnly(): string[] {
if (owner) names.add(owner.exportName);
}
}
return [...names].toSorted();
return sortBy([...names], identity());
}
/**