Skip to content

Commit 68e04cb

Browse files
authored
Merge branch 'master' into dmsWork
2 parents c5f506a + 4d14422 commit 68e04cb

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,6 @@
10501050
},
10511051
"engines": {
10521052
"npm": "^10.1.0",
1053-
"vscode": "^1.68.0"
1053+
"vscode": "^1.83.0"
10541054
}
10551055
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "Apache-2.0",
66
"engines": {
77
"npm": "^10.1.0",
8-
"vscode": "^1.68.0"
8+
"vscode": "^1.83.0"
99
},
1010
"exports": {
1111
".": "./dist/src/extension.js",

packages/core/src/test/globalSetup.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { disableAwsSdkWarning } from '../shared/awsClientBuilder'
2525
import { GlobalState } from '../shared/globalState'
2626
import { FeatureConfigProvider } from '../shared/featureConfig'
2727
import { mockFeatureConfigsData } from './fake/mockFeatureConfigData'
28-
import fs from 'node:fs/promises'
28+
import { fs } from '../shared'
29+
import { promises as nodefs } from 'fs' //eslint-disable-line no-restricted-imports
2930

3031
disableAwsSdkWarning()
31-
3232
const testReportDir = join(__dirname, '../../../../../.test-reports') // Root project, not subproject
3333
const testLogOutput = join(testReportDir, 'testLog.log')
3434
const globalSandbox = sinon.createSandbox()
@@ -42,10 +42,9 @@ let openExternalStub: sinon.SinonStub<Parameters<(typeof vscode)['env']['openExt
4242
export async function mochaGlobalSetup(extensionId: string) {
4343
return async function (this: Mocha.Runner) {
4444
// Clean up and set up test logs
45-
try {
46-
await fs.rm(testLogOutput)
47-
} catch (e) {}
48-
await fs.mkdir(testReportDir, { recursive: true })
45+
// Use nodefs instead of our fs module (which uses globals.isWeb, which is not initialized yet).
46+
await nodefs.rm(testLogOutput, { force: true })
47+
await nodefs.mkdir(testReportDir, { recursive: true })
4948

5049
sinon.stub(FeatureConfigProvider.prototype, 'listFeatureEvaluations').resolves({
5150
featureEvaluations: mockFeatureConfigsData,

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"browser": "./dist/src/extensionWeb",
5454
"engines": {
5555
"npm": "^10.1.0",
56-
"vscode": "^1.68.0"
56+
"vscode": "^1.83.0"
5757
},
5858
"scripts": {
5959
"vscode:prepublish": "npm run clean && npm run buildScripts && webpack --mode production",

0 commit comments

Comments
 (0)