import * as AnalyticUnit from '../src/models/analytic_units'; import * as AnalyticUnitCache from '../src/models/analytic_unit_cache_model'; import { TEST_ANALYTIC_UNIT_ID, createTestDB } from './utils_for_tests/analytic_units'; import { clearSegmentsDB } from './utils_for_tests/segments'; console.log = jest.fn(); console.error = jest.fn(); jest.mock('../src/config.ts', () => ({ DATA_PATH: 'fake-data-path', HASTIC_API_KEY: 'fake-key', ZMQ_IPC_PATH: 'fake-zmq-path' })); clearSegmentsDB(); createTestDB();