-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (26 loc) · 893 Bytes
/
vitest.config.ts
File metadata and controls
29 lines (26 loc) · 893 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
import { fileURLToPath } from "node:url";
import type { UserConfig } from "vite";
import { mergeConfig, defineConfig, configDefaults } from "vitest/config";
import viteConfig from "./vite.config";
export default mergeConfig(
viteConfig({ mode: "development" }) as UserConfig,
defineConfig({
test: {
environment: "jsdom",
exclude: [...configDefaults.exclude, "e2e/*"],
root: fileURLToPath(new URL("./", import.meta.url)),
setupFiles: ["./src/tests/setup.ts"],
includeSource: ["src/**/*.{js,ts}"],
testTimeout: 30_000,
alias: [
{
// https://github.com/vitest-dev/vitest/discussions/1806#discussioncomment-3570047
find: /^monaco-editor$/,
replacement:
__dirname + "/node_modules/monaco-editor/esm/vs/editor/editor.api",
},
],
deps: { inline: ["vuetify"] },
},
}),
);