diff --git a/clients/admin-ui/global.d.ts b/clients/admin-ui/global.d.ts index f3b31e74e22..ed08a72b412 100644 --- a/clients/admin-ui/global.d.ts +++ b/clients/admin-ui/global.d.ts @@ -8,6 +8,6 @@ declare module globalThis { interface Window { // Cypress is available on window when running in Cypress tests Cypress?: any; - // Redux store is exposed for Cypress testing - __REDUX_STORE__?: any; + // Redux store is exposed for Cypress testing only + __REDUX_STORE__?: process.env.NODE_ENV === 'test' ? any : never; }