test(renderer): add failing test for cn() helper + vitest config

This commit is contained in:
2026-06-05 09:20:04 +05:30
parent 188e73d7c1
commit ea0f3f93bf
4 changed files with 58 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import '@testing-library/jest-dom/vitest';
// Mock window.electronAPI for tests
declare global {
interface Window {
electronAPI: any;
}
}
if (typeof window !== 'undefined' && !window.electronAPI) {
window.electronAPI = {};
}