2024-01-22 20:56:55 +03:00
|
|
|
export default ["packages/*/vitest.config.ts", "packages/*/vitest.config.mts"];
|
|
|
|
|
|
|
|
/**
|
2024-01-25 21:40:16 +03:00
|
|
|
* Default Config For all TypeSpec projects using vitest.
|
2024-01-22 20:56:55 +03:00
|
|
|
*/
|
|
|
|
export const defaultTypeSpecVitestConfig = {
|
|
|
|
test: {
|
|
|
|
environment: "node",
|
|
|
|
isolate: false,
|
|
|
|
coverage: {
|
|
|
|
reporter: ["cobertura", "json", "text"],
|
|
|
|
},
|
|
|
|
outputFile: {
|
|
|
|
junit: "./test-results.xml",
|
|
|
|
},
|
|
|
|
watchExclude: [],
|
|
|
|
},
|
2024-04-01 20:54:38 +03:00
|
|
|
build: {
|
|
|
|
outDir: "dummy", // Workaround for bug https://github.com/vitest-dev/vitest/issues/5429
|
|
|
|
},
|
2024-01-22 20:56:55 +03:00
|
|
|
};
|