Conventional commits / commits (pull_request) Successful in 24s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 5m18s
Frontend security / security (push) Successful in 10s
Frontend verify / verify (push) Successful in 6m45s
OpenSpec change: evolve-frontend-stack
30 lines
865 B
TypeScript
30 lines
865 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import react from "@vitejs/plugin-react";
|
|
import { configDefaults, defineConfig } from "vitest/config";
|
|
|
|
const CI_TEST_TIMEOUT_MS = 15_000;
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
|
|
test: {
|
|
// CI runs the UI scenarios with coverage on a slower runner.
|
|
testTimeout: process.env.CI ? CI_TEST_TIMEOUT_MS : undefined,
|
|
environment: "jsdom",
|
|
exclude: configDefaults.exclude,
|
|
setupFiles: "./src/test/setup.ts",
|
|
coverage: {
|
|
all: true,
|
|
include: ["src/**/*.{ts,tsx}", "packages/*/src/**/*.{ts,tsx}"],
|
|
exclude: ["src/test/**", "**/*.test.{ts,tsx}", "**/*.stories.tsx"],
|
|
reporter: ["text", "html", "lcov"],
|
|
thresholds: {
|
|
statements: 82,
|
|
branches: 75,
|
|
functions: 75,
|
|
lines: 83,
|
|
},
|
|
},
|
|
},
|
|
});
|