Skip to content

Commit f29eeca

Browse files
committed
tests
1 parent b417aa5 commit f29eeca

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { describe, expect, it } from "vitest";
2+
import { ServerConfigSchema } from "../src/lib/types";
3+
4+
describe("ServerConfigSchema", () => {
5+
it("You can parse a server config", async () => {
6+
const config = ServerConfigSchema.parse({
7+
type: "stdio",
8+
config: {
9+
command: "npx",
10+
args: ["@playwright/mcp@latest"],
11+
},
12+
});
13+
expect(config).toBeDefined();
14+
expect(config.type).toBe("stdio");
15+
});
16+
});

0 commit comments

Comments
 (0)