MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / main

Function main

test/test-e2e.ts:1039–1062  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1037}
1038
1039async function main(): Promise<void> {
1040 console.log("\n=== ClawRouter e2e tests ===\n");
1041 console.log(`Temp HOME: ${TEST_HOME}`);
1042 if (RUN_PAID_TESTS && LIVE_WALLET_KEY) {
1043 console.log("Live paid mode: enabled");
1044 } else {
1045 console.log("Live paid mode: disabled (local mock suite still runs)");
1046 }
1047
1048 const { startProxy } = await import("../src/proxy.js");
1049 let allPassed = true;
1050
1051 try {
1052 allPassed = (await runLocalSuite(startProxy)) && allPassed;
1053 allPassed = (await runLiveSuite(startProxy)) && allPassed;
1054 } finally {
1055 if (CLEAN_TEST_HOME) {
1056 await rm(TEST_HOME, { recursive: true, force: true });
1057 }
1058 }
1059
1060 allPassed = printSummary() && allPassed;
1061 process.exit(allPassed ? 0 : 1);
1062}
1063
1064main().catch(async (err) => {
1065 console.error("Fatal:", err instanceof Error ? err.stack || err.message : String(err));

Callers 1

test-e2e.tsFile · 0.70

Calls 3

runLocalSuiteFunction · 0.85
runLiveSuiteFunction · 0.85
printSummaryFunction · 0.85

Tested by

no test coverage detected