diff --git a/test/integration/config/analytics.test.ts b/test/integration/config/analytics.test.ts index 4d95d641e08..7ac5d4d04a6 100644 --- a/test/integration/config/analytics.test.ts +++ b/test/integration/config/analytics.test.ts @@ -1,6 +1,17 @@ import { expect, test } from '@oclif/test'; +import { fileCleanup } from '../../helpers'; + +const analyticsConfigFilePath = './test/fixtures/.asyncapi-analytics'; describe('config:analytics', () => { + beforeEach(() => { + process.env = Object.assign(process.env, { ASYNCAPI_METRICS_CONFIG_PATH: analyticsConfigFilePath }); + }); + + afterEach(() => { + fileCleanup(analyticsConfigFilePath); + }); + describe('with disable flag', () => { test .stderr()