Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

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.ts
index 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.json
index 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": []
}