Read testMode from KAFKA_FRONTEND_TEST_MODE env var.

This commit is contained in:
Sage Vaillancourt 2022-09-09 07:31:26 -04:00
parent 233afb75eb
commit e09d9fc0a6
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ const buildMockItem = () => {
const mockItems = Array(100).fill(buildMockItem, 0).map(mocker => mocker()) 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({ export const state = writable({
items: [], items: [],