mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-27 10:55:07 +08:00
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
import { afterEach, vi } from "vitest";
|
|
import { cleanup } from "vitest-browser-vue/pure";
|
|
|
|
import { createEChartsModule } from "./helpers/mock";
|
|
import { resetDocumentBody } from "./helpers/dom";
|
|
|
|
// Mock echarts/core globally for browser tests
|
|
vi.mock("echarts/core", () => createEChartsModule());
|
|
|
|
// Centralized cleanup for all browser tests
|
|
afterEach(() => {
|
|
cleanup();
|
|
resetDocumentBody();
|
|
});
|