mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 09:24:54 +10:00
v5.1.0 (#2970)
* chore(release): v5.1.0 * feat: implement resume thumbnails * fix: remove unused mcp tools * docs: fix formatting of docs
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import type { ViteUserConfig } from "vitest/config";
|
||||
import type { VitestEnvironment } from "vitest/node";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
const workspaceRoot = fileURLToPath(new URL(".", import.meta.url));
|
||||
const setupFile = fileURLToPath(new URL("./vitest.setup.ts", import.meta.url));
|
||||
|
||||
type VitestProjectOptions = {
|
||||
name: string;
|
||||
dirname: string;
|
||||
environment?: VitestEnvironment;
|
||||
plugins?: ViteUserConfig["plugins"];
|
||||
};
|
||||
|
||||
export const createVitestProjectConfig = ({
|
||||
name,
|
||||
dirname,
|
||||
environment = "node",
|
||||
plugins = [],
|
||||
}: VitestProjectOptions) =>
|
||||
defineConfig({
|
||||
root: dirname,
|
||||
envDir: workspaceRoot,
|
||||
resolve: { tsconfigPaths: true },
|
||||
plugins,
|
||||
test: {
|
||||
name,
|
||||
environment,
|
||||
setupFiles: [setupFile],
|
||||
include: ["src/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
|
||||
exclude: ["node_modules", "dist", ".output", "coverage", "reports"],
|
||||
pool: "forks",
|
||||
passWithNoTests: true,
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
reportsDirectory: "coverage",
|
||||
reporter: ["text", "text-summary", "json-summary", "json", "lcov", "html"],
|
||||
include: ["src/**/*.{ts,tsx}"],
|
||||
exclude: ["src/**/*.{test,spec}.*", "src/**/*.d.ts", "src/routeTree.gen.ts"],
|
||||
reportOnFailure: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user