Skip to content

Commit

Permalink
feat(variables): start impelementing store
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafikart committed Sep 21, 2023
1 parent 6172800 commit 1e99f4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export function isTestEnv(): boolean {
return import.meta ? (import.meta as any).env.MODE === 'test' : false;
const meta = import.meta as any;
return meta && meta?.env ? (import.meta as any).env.MODE === 'test' : false;
}

0 comments on commit 1e99f4c

Please sign in to comment.