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

Function testCjs

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

Source from the content-addressed store, hash-verified

34}
35
36async function testCjs() {
37 console.log("🧪 Testing CommonJS build...");
38 try {
39 await execa("node", ["./dist/index.cjs"], {
40 cwd: __dirname,
41 stdio: "inherit",
42 });
43 console.log("✅ CommonJS test passed!");
44 } catch (error) {
45 console.error("❌ CommonJS test failed:", error);
46 process.exit(1);
47 }
48}
49
50async function testMjs() {
51 console.log("🧪 Testing CommonJS build...");

Callers 1

runAllTestsFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected