diff --git a/package.json b/package.json index edd4a0140..8de8fd512 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inseefr/lunatic", - "version": "2.6.3-rc.1", + "version": "2.7.0-rc.1", "workersVersion": "0.2.5-experimental", "description": "Library of questionnaire components", "repository": { diff --git a/src/utils/env.ts b/src/utils/env.ts index 347ab75d7..8c9315d7d 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -1,4 +1,4 @@ export function isTestEnv(): boolean { - const meta = import.meta as any; - return meta && meta?.env ? (import.meta as any).env.MODE === 'test' : false; + // @ts-ignore + return import.meta.env.MODE === 'test'; }