File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { GlobalState } from '../shared/globalState'
2626import { FeatureConfigProvider } from '../shared/featureConfig'
2727import { mockFeatureConfigsData } from './fake/mockFeatureConfigData'
2828import { fs } from '../shared'
29- import { rm , mkdir } from 'fs/promises ' //eslint-disable-line no-restricted-imports
29+ import { promises as nodefs } from 'fs' //eslint-disable-line no-restricted-imports
3030
3131disableAwsSdkWarning ( )
3232const testReportDir = join ( __dirname , '../../../../../.test-reports' ) // Root project, not subproject
@@ -43,8 +43,8 @@ export async function mochaGlobalSetup(extensionId: string) {
4343 return async function ( this : Mocha . Runner ) {
4444 // Clean up and set up test logs
4545 // Use nodefs over our fs since globals may not be initialized yet and our fs checks isWeb via globals.
46- await rm ( testLogOutput , { force : true } )
47- await mkdir ( testReportDir , { recursive : true } )
46+ await nodefs . rm ( testLogOutput , { force : true } )
47+ await nodefs . mkdir ( testReportDir , { recursive : true } )
4848
4949 sinon . stub ( FeatureConfigProvider . prototype , 'listFeatureEvaluations' ) . resolves ( {
5050 featureEvaluations : mockFeatureConfigsData ,
You can’t perform that action at this time.
0 commit comments