chore(tests): print only warn/error logs during test runs

Set ASK262_LOG_CONSOLE=true and ASK262_LOG_LEVEL=warn for bun test
to surface important failures while keeping the output clean.
This commit is contained in:
2026-04-27 17:00:44 +05:30
parent 30cd83f6d4
commit f2934022ac
+1 -1
View File
@@ -28,7 +28,7 @@
"ask262-stdio": "bun run src/mcp-server-stdio.ts", "ask262-stdio": "bun run src/mcp-server-stdio.ts",
"ask262-http": "bun run src/mcp-server-http.ts", "ask262-http": "bun run src/mcp-server-http.ts",
"ask262-inspector": "bunx @modelcontextprotocol/inspector --transport http --server-url http://localhost:$(bun -e 'console.log(process.env.ASK262_PORT || \"8081\")')/mcp", "ask262-inspector": "bunx @modelcontextprotocol/inspector --transport http --server-url http://localhost:$(bun -e 'console.log(process.env.ASK262_PORT || \"8081\")')/mcp",
"test": "bun test", "test": "ASK262_LOG_CONSOLE=true ASK262_LOG_LEVEL=warn bun test",
"prepublish": "npm run type-check && npm run lint && npm pack --dry-run", "prepublish": "npm run type-check && npm run lint && npm pack --dry-run",
"release": "bash scripts/release.sh --patch" "release": "bash scripts/release.sh --patch"
}, },