diff --git a/frontend/src/directives/testid.ts b/frontend/src/directives/testid.ts index 0c33af391..7219134d4 100644 --- a/frontend/src/directives/testid.ts +++ b/frontend/src/directives/testid.ts @@ -10,7 +10,7 @@ declare global { // In dev mode, always enable. In production, check window.TESTING which can be // injected into index.html before serving (e.g., by CI or test runner) function isTestingEnabled(): boolean { - return import.meta.env.DEV || window.TESTING === true + return import.meta.env.MODE === 'development' || window.TESTING === true } const testIdDirective = >{