File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/contentstack-utilities/test/unit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as fs from 'fs';
55import * as path from 'path' ;
66import * as os from 'os' ;
77import Logger from '../../src/logger/logger' ;
8- import { getSessionLogPath } from '../../src/logger/session-path' ;
8+ import { getSessionLogPath , clearSessionLogPathCache } from '../../src/logger/session-path' ;
99import configHandler from '../../src/config-handler' ;
1010
1111describe ( '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 } ) ;
You can’t perform that action at this time.
0 commit comments