Skip to content

Commit 3111559

Browse files
committed
Fix logger Test cases
1 parent 2f317e2 commit 3111559

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/contentstack-utilities/test/unit/logger.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from 'fs';
55
import * as path from 'path';
66
import * as os from 'os';
77
import Logger from '../../src/logger/logger';
8-
import { getSessionLogPath } from '../../src/logger/session-path';
8+
import { getSessionLogPath, clearSessionLogPathCache } from '../../src/logger/session-path';
99
import configHandler from '../../src/config-handler';
1010

1111
describe('Logger', () => {
@@ -239,6 +239,7 @@ describe('Session Log Path', () => {
239239

240240
beforeEach(() => {
241241
sandbox = sinon.createSandbox();
242+
clearSessionLogPathCache();
242243
// Create a temporary directory for testing
243244
tempDir = path.join(os.tmpdir(), `csdx-log-test-${Date.now()}`);
244245
fs.mkdirSync(tempDir, { recursive: true });

0 commit comments

Comments
 (0)