-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (28 loc) · 969 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (28 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { fileURLToPath } from "node:url";
import { configDefaults, defineConfig, mergeConfig } from "vite-plus";
import viteConfig from "./packages/docs/vite.config";
export default mergeConfig(
viteConfig,
defineConfig({
resolve: {
alias: {
"dayjs/plugin/advancedFormat": "dayjs/plugin/advancedFormat.js",
"dayjs/plugin/customParseFormat": "dayjs/plugin/customParseFormat.js",
"dayjs/plugin/localeData": "dayjs/plugin/localeData.js",
"dayjs/plugin/weekday": "dayjs/plugin/weekday.js",
"dayjs/plugin/weekOfYear": "dayjs/plugin/weekOfYear.js",
"dayjs/plugin/weekYear": "dayjs/plugin/weekYear.js",
},
},
test: {
environment: "jsdom",
exclude: [...configDefaults.exclude, "**/dist/**", "e2e/**"],
root: fileURLToPath(new URL("./", import.meta.url)),
server: {
deps: {
inline: ["antdv-next", "@v-c/picker", "dayjs"],
},
},
},
}),
);