diff --git a/packages/hook/test/TestHelper.ts b/packages/hook/test/TestHelper.ts index 0d82c852..77da24c9 100644 --- a/packages/hook/test/TestHelper.ts +++ b/packages/hook/test/TestHelper.ts @@ -1,7 +1,9 @@ import {EnvironmentUtil} from 'pandora-env'; import {MockEnvironment} from './MockEnvironment'; +import { MetricsClient, MetricsClientUtil } from 'pandora-metrics'; const events = require('events'); events.defaultMaxListeners = 100; process.env.NODE_ENV = 'test'; // setup mock env EnvironmentUtil.getInstance().setCurrentEnvironment(new MockEnvironment()); +MetricsClientUtil.setMetricsClient(MetricsClient.getInstance());