Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
61
repos/effect/vitest.shared.ts
Normal file
61
repos/effect/vitest.shared.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import path from "node:path"
|
||||
import aliases from "vite-tsconfig-paths"
|
||||
import type { ViteUserConfig } from "vitest/config"
|
||||
|
||||
const config: ViteUserConfig = {
|
||||
esbuild: {
|
||||
target: "es2020"
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["bun:sqlite"]
|
||||
},
|
||||
plugins: [aliases()],
|
||||
server: {
|
||||
watch: {
|
||||
ignored: [
|
||||
"**/.context/**",
|
||||
"**/.direnv/**",
|
||||
"**/.lalph/**",
|
||||
"**/.repos/**"
|
||||
]
|
||||
}
|
||||
},
|
||||
test: {
|
||||
exclude: [
|
||||
"**/.context/**",
|
||||
"**/.direnv/**",
|
||||
"**/.lalph/**",
|
||||
"**/.repos/**",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
setupFiles: [path.join(__dirname, "vitest.setup.ts")],
|
||||
fakeTimers: {
|
||||
toFake: undefined
|
||||
},
|
||||
sequence: {
|
||||
concurrent: true
|
||||
},
|
||||
include: ["test/**/*.test.{ts,tsx}"],
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
reporter: ["html"],
|
||||
reportsDirectory: "coverage",
|
||||
exclude: [
|
||||
"node_modules/",
|
||||
"dist/",
|
||||
"benchmark/",
|
||||
"bundle/",
|
||||
"typetest/",
|
||||
"build/",
|
||||
"coverage/",
|
||||
"test/utils/",
|
||||
"**/*.d.ts",
|
||||
"**/*.config.*",
|
||||
"**/vitest.setup.*",
|
||||
"**/vitest.shared.*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user