diff options
Diffstat (limited to 'packages/server')
| -rw-r--r-- | packages/server/package.json | 3 | ||||
| -rw-r--r-- | packages/server/vitest.config.ts | 28 |
2 files changed, 29 insertions, 2 deletions
diff --git a/packages/server/package.json b/packages/server/package.json index 8e654c88..abb679cc 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -11,8 +11,7 @@ "lint": "eslint . --ext .ts,.tsx", "format": "prettier --write .", "test": "vitest run", - "test:ci": "vitest run --reporter=junit --outputFile=junit.xml", - "coverage": "vitest run --coverage", + "test:ci": "vitest run --coverage", "typecheck": "tsc --noEmit", "prerelease:version": "node ../../scripts/bind_package_version.js", "prerelease:deps": "node ../../scripts/bind_package_dependencies.js", diff --git a/packages/server/vitest.config.ts b/packages/server/vitest.config.ts new file mode 100644 index 00000000..17defb41 --- /dev/null +++ b/packages/server/vitest.config.ts @@ -0,0 +1,28 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + reporters: ['default', 'junit'], + outputFile: { + junit: 'junit.xml', + }, + coverage: { + provider: 'v8', + reportsDirectory: './coverage', + reporter: [ + ['text', { file: 'full-text-summary.txt' }], + 'html', + 'json', + 'lcov', + 'cobertura', + ['json-summary', { outputFile: 'coverage-summary.json' }], + ], + }, + }, +}); |
