You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
426 B
23 lines
426 B
import { config } from "@vue/test-utils";
|
|
import { vi } from "vitest";
|
|
|
|
// Setup global mocks
|
|
vi.mock("vue-i18n", () => ({
|
|
useI18n: () => ({
|
|
t: (key) => key,
|
|
}),
|
|
}));
|
|
|
|
// Global components mock
|
|
config.global.stubs = {
|
|
"font-awesome-icon": true,
|
|
};
|
|
|
|
// Global mounting options
|
|
config.global.mocks = {
|
|
$t: (key) => key,
|
|
$filters: {
|
|
formatDateTime: vi.fn((date) => date.toString()),
|
|
},
|
|
};
|