test: use quiet dot reporters and show output only for failing tests

Switch vitest packages (ai, agent, coding-agent) to the dot reporter
with silent: passed-only so passing tests stay quiet while failing
tests still print their console output and full diffs. Add the
github-actions reporter on CI for inline annotations. Switch the tui
node:test runner to the dot reporter as well.
This commit is contained in:
Armin Ronacher 2026-07-05 23:17:17 +02:00
parent 75ac0cb0e6
commit 478301342b
4 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,8 @@ export default defineConfig({
globals: true,
environment: "node",
testTimeout: 30000, // 30 seconds for API calls
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
silent: "passed-only",
},
resolve: {
alias: [

View file

@ -5,5 +5,7 @@ export default defineConfig({
globals: true,
environment: 'node',
testTimeout: 30000, // 30 seconds for API calls
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions'] : ['dot'],
silent: 'passed-only',
}
});

View file

@ -12,6 +12,8 @@ export default defineConfig({
globals: true,
environment: "node",
testTimeout: 30000,
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
silent: "passed-only",
server: {
deps: {
external: [/@silvia-odwyer\/photon-node/],

View file

@ -7,7 +7,7 @@
"scripts": {
"clean": "shx rm -rf dist",
"build": "tsgo -p tsconfig.build.json",
"test": "node --test test/*.test.ts",
"test": "node --test --test-reporter=dot --test-reporter-destination=stdout test/*.test.ts",
"prepublishOnly": "npm run clean && npm run build"
},
"files": [