We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6713bf3 commit bd58dd3Copy full SHA for bd58dd3
src/tests/setup.ts
@@ -3,6 +3,19 @@
3
* The file path is specified in vitest.config.ts.
4
*/
5
import { vi } from "vitest";
6
+import { config } from "@vue/test-utils";
7
+import { createVuetify } from "vuetify";
8
+import * as components from "vuetify/components";
9
+import * as directives from "vuetify/directives";
10
+
11
+// For Vuetify
12
+// https://vuetifyjs.com/en/getting-started/unit-testing/
13
+const vuetify = createVuetify({
14
+ components,
15
+ directives,
16
+});
17
18
+config.global.plugins = [vuetify];
19
20
// For monaco.editor.create()
21
// https://github.com/vitest-dev/vitest/issues/821#issuecomment-1046954558
0 commit comments