cadl/vitest.workspace.ts

29 строки
578 B
TypeScript

import { defineConfig } from "vitest/config";
export default [
"packages/*/vitest.config.ts",
"packages/*/vitest.config.mts",
"eng/vitest.config.ts",
];
/**
* Default Config For all TypeSpec projects using vitest.
*/
export const defaultTypeSpecVitestConfig = defineConfig({
test: {
environment: "node",
isolate: false,
coverage: {
reporter: ["cobertura", "json", "text"],
},
outputFile: {
junit: "./test-results.xml",
},
exclude: ["node_modules", "dist/test"],
},
server: {
watch: {
ignored: [],
},
},
});