Fix lint errors in types.ts and remove any casts
- Use import type for VERSIONED_MANIFEST_SCHEMAS and DEFAULT_MANIFEST_VERSION - Remove unnecessary any type annotations from test file
This commit is contained in:
parent
8018a9a2e0
commit
21c9710584
1 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ describe("McpbManifestSchema", () => {
|
|||
|
||||
expect(result.success).toBe(false);
|
||||
if (!result.success) {
|
||||
const errors = result.error.issues.map((issue: any) => issue.path.join("."));
|
||||
const errors = result.error.issues.map((issue) => issue.path.join("."));
|
||||
expect(errors).toContain("author.name");
|
||||
expect(errors).toContain("author.email");
|
||||
expect(errors).toContain("server.type");
|
||||
|
|
@ -273,7 +273,7 @@ describe("McpbManifestSchema", () => {
|
|||
const result = v0_3.McpbManifestSchema.safeParse(manifest);
|
||||
expect(result.success).toBe(false);
|
||||
if (!result.success) {
|
||||
const messages = result.error.issues.map((issue: any) => issue.message);
|
||||
const messages = result.error.issues.map((issue) => issue.message);
|
||||
expect(messages.join(" ")).toContain("${locale}");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue