mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-07-09 17:28:45 +00:00
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:
parent
75ac0cb0e6
commit
478301342b
4 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ export default defineConfig({
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: "node",
|
environment: "node",
|
||||||
testTimeout: 30000, // 30 seconds for API calls
|
testTimeout: 30000, // 30 seconds for API calls
|
||||||
|
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
|
||||||
|
silent: "passed-only",
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [
|
alias: [
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,7 @@ export default defineConfig({
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: 'node',
|
environment: 'node',
|
||||||
testTimeout: 30000, // 30 seconds for API calls
|
testTimeout: 30000, // 30 seconds for API calls
|
||||||
|
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions'] : ['dot'],
|
||||||
|
silent: 'passed-only',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -12,6 +12,8 @@ export default defineConfig({
|
||||||
globals: true,
|
globals: true,
|
||||||
environment: "node",
|
environment: "node",
|
||||||
testTimeout: 30000,
|
testTimeout: 30000,
|
||||||
|
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions"] : ["dot"],
|
||||||
|
silent: "passed-only",
|
||||||
server: {
|
server: {
|
||||||
deps: {
|
deps: {
|
||||||
external: [/@silvia-odwyer\/photon-node/],
|
external: [/@silvia-odwyer\/photon-node/],
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "shx rm -rf dist",
|
"clean": "shx rm -rf dist",
|
||||||
"build": "tsgo -p tsconfig.build.json",
|
"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"
|
"prepublishOnly": "npm run clean && npm run build"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue