30 lines
860 B
TypeScript
30 lines
860 B
TypeScript
/*
|
|
Copyright 2026 Element Creations Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { defineConfig } from "vitest/config";
|
|
import { playwright } from "@vitest/browser-playwright";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["tests/**/*.test.{ts,tsx}"],
|
|
exclude: ["./e2e/**/*", "./node_modules/**/*"],
|
|
reporters: ["default"],
|
|
coverage: {
|
|
provider: "v8",
|
|
include: ["src/**/*.ts"],
|
|
reporter: [["lcov", { projectRoot: "../../" }], "text"],
|
|
},
|
|
browser: {
|
|
enabled: true,
|
|
headless: true,
|
|
provider: playwright({}),
|
|
instances: [{ browser: "chromium" }],
|
|
},
|
|
setupFiles: ["tests/setupTests.ts"],
|
|
},
|
|
});
|