Skip to content

Commit

Permalink
Remove meta env (#713)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Ruhier <[email protected]>
  • Loading branch information
Grafikart and QRuhier authored Oct 11, 2023
1 parent 569fd07 commit a37cc7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
@@ -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';
}

0 comments on commit a37cc7d

Please sign in to comment.