Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): include the vite globals in the test type-check program
Yudhi Armyndharisb0fe43dedc52
diff --git a/dashboard/src/pages/Infrastructure.test.ts b/dashboard/src/pages/Infrastructure.test.tsindex 6c9ab03df..de6c2cc94 100644--- a/dashboard/src/pages/Infrastructure.test.ts+++ b/dashboard/src/pages/Infrastructure.test.ts@@ -228,7 +228,7 @@ afterEach(() => {overrides = {};});-function renderInfrastructure(): { container: HTMLElement } {+function renderInfrastructure() {queryClient = new QueryClient({ defaultOptions: { queries: { retry: false, gcTime: 1_000 } } });return rtl.render(createElement(diff --git a/dashboard/tsconfig.test.json b/dashboard/tsconfig.test.jsonindex fbe97da98..ba58f0993 100644--- a/dashboard/tsconfig.test.json+++ b/dashboard/tsconfig.test.json@@ -3,6 +3,6 @@"compilerOptions": {"types": ["node", "vite/client"]},- "include": ["src/**/*.test.ts"],+ "include": ["src/**/*.test.ts", "src/vite-env.d.ts"],"exclude": []}