From e09d9fc0a6ecdda679fb63684b2707f637a439cc Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 9 Sep 2022 07:31:26 -0400 Subject: [PATCH] Read testMode from KAFKA_FRONTEND_TEST_MODE env var. --- src/lib/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/state.js b/src/lib/state.js index a96ced5..e891672 100644 --- a/src/lib/state.js +++ b/src/lib/state.js @@ -45,7 +45,7 @@ const buildMockItem = () => { const mockItems = Array(100).fill(buildMockItem, 0).map(mocker => mocker()) -export const testMode = true +export const testMode = (process?.env?.KAFKA_FRONTEND_TEST_MODE === 'true') export const state = writable({ items: [],