35 строки
777 B
TypeScript
35 строки
777 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
testTimeout: 18000,
|
|
typecheck: {
|
|
enabled: true,
|
|
},
|
|
reporters: ["verbose", "junit"],
|
|
outputFile: {
|
|
junit: "test-results.xml",
|
|
},
|
|
fakeTimers: {
|
|
toFake: ["setTimeout", "Date"],
|
|
},
|
|
watch: false,
|
|
exclude: ["test/**/browser/*.spec.ts"],
|
|
coverage: {
|
|
include: ["src/**/*.ts"],
|
|
exclude: [
|
|
"src/**/*-browser.mts",
|
|
"src/**/*-react-native.mts",
|
|
"vitest*.config.ts",
|
|
"samples-dev/**/*.ts",
|
|
],
|
|
provider: "istanbul",
|
|
reporter: ["text", "json", "html"],
|
|
reportsDirectory: "coverage",
|
|
},
|
|
},
|
|
});
|