mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-11-01 01:18:17 +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();
 | |
| });
 | 
