Skip to content

Commit

Permalink
test: handle a different analytics config file for testing (#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr authored Jun 5, 2024
1 parent 3c84634 commit 14d4b89
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/integration/config/analytics.test.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 14d4b89

Please sign in to comment.