49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
// Inline config — testing-e2e tests run under vitest (NOT Playwright).
|
|
// The package wraps Playwright; its unit tests verify the wrappers' shape
|
|
// and error behaviour using mocked Playwright primitives.
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: false,
|
|
environment: "happy-dom",
|
|
pool: "forks",
|
|
setupFiles: ["./tests/setup/polyfills.ts"],
|
|
include: [
|
|
"src/**/*.test.ts",
|
|
"tests/**/*.test.ts",
|
|
],
|
|
exclude: [
|
|
"src/__benchmarks__/**",
|
|
"benchmarks/**",
|
|
"e2e/**",
|
|
"dist/**",
|
|
"node_modules/**",
|
|
],
|
|
coverage: {
|
|
provider: "istanbul",
|
|
reporter: ["text", "html", "lcov"],
|
|
include: ["src/**/*.ts"],
|
|
exclude: [
|
|
"src/**/*.test.ts",
|
|
"src/**/*.bench.ts",
|
|
"src/**/*.schemas.ts",
|
|
"src/**/*.types.ts",
|
|
"src/**/index.ts",
|
|
"src/__benchmarks__/**",
|
|
"src/setup/polyfills.ts",
|
|
"src/fixtures/extended-test.ts",
|
|
"tests/**",
|
|
],
|
|
thresholds: {
|
|
statements: 100,
|
|
branches: 100,
|
|
functions: 100,
|
|
lines: 100,
|
|
},
|
|
},
|
|
testTimeout: 5000,
|
|
},
|
|
});
|