Initial commit
This commit is contained in:
25
packages/core-shared/vitest.config.ts
Normal file
25
packages/core-shared/vitest.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import path from "node:path";
|
||||
import { mergeConfig } from "vitest/config";
|
||||
import { nodeVitestConfig } from "@repo/core-typescript/vitest.base.node";
|
||||
|
||||
export default mergeConfig(nodeVitestConfig, {
|
||||
test: {
|
||||
coverage: {
|
||||
exclude: [
|
||||
// Ambient declaration files have no runtime code
|
||||
"src/**/*.d.ts",
|
||||
// Pure TypeScript interface files — erased at runtime, not unit-testable
|
||||
"src/**/*.interface.ts",
|
||||
// DI symbol constants — boilerplate, covered implicitly by bind-* tests
|
||||
"src/**/symbols.ts",
|
||||
// tRPC context factory — wired at app bootstrap, not unit-testable
|
||||
"src/trpc/context.ts",
|
||||
// Sentry client init — browser/node SDK init, tested in apps
|
||||
"src/instrumentation/sentry/**",
|
||||
],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: { "@": path.resolve(__dirname, "./src") },
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user