Skip to content

Commit 0af0097

Browse files
committed
🐛 isMock skal være true hvis FUNCTIONAL_TESTS er enabled
1 parent 3c04bea commit 0af0097

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/environments.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const MOCK_ENVIRONMENTS = ['localhost'];
22

3-
export const isMock = () => MOCK_ENVIRONMENTS.includes(process.env.RUNTIME_ENVIRONMENT ?? '');
3+
export const isMock = () =>
4+
MOCK_ENVIRONMENTS.includes(process.env.RUNTIME_ENVIRONMENT ?? '') || isFunctionalTest();
45

56
export const isFunctionalTest = () => process.env.FUNCTIONAL_TESTS === 'enabled';
67

0 commit comments

Comments
 (0)