MCPcopy
hub / github.com/colinhacks/zod / testMjs

Function testMjs

packages/resolution/test-resolution.ts:50–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50async function testMjs() {
51 console.log("🧪 Testing CommonJS build...");
52 try {
53 await execa("node", ["./dist/index.mjs"], {
54 cwd: __dirname,
55 stdio: "inherit",
56 });
57 console.log("✅ CommonJS test passed!");
58 } catch (error) {
59 console.error("❌ CommonJS test failed:", error);
60 process.exit(1);
61 }
62}
63
64async function testJs() {
65 console.log("🧪 Testing ES Module build...");

Callers 1

runAllTestsFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected