From 9e0d33dcde38cf68ab2bb6d3f8533ac33e63907b Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Thu, 31 Oct 2024 10:29:45 -0700 Subject: [PATCH] dont add setting programmatically for smoke test --- src/test/standardTest.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/test/standardTest.ts b/src/test/standardTest.ts index 8d6cf32edcc9..00eb3d7cf8c4 100644 --- a/src/test/standardTest.ts +++ b/src/test/standardTest.ts @@ -29,29 +29,6 @@ const extensionDevelopmentPath = process.env.CODE_EXTENSIONS_PATH ? process.env.CODE_EXTENSIONS_PATH : EXTENSION_ROOT_DIR_FOR_TESTS; -// Make sure shell used are pwsh for smoke tests -// create .vscode folder inside workspacePath and settings.json inside that .vscode path -async function setupWorkspace() { - await fs.ensureDir(path.join(workspacePath, '.vscode')); - const settingsPath = path.join(workspacePath, '.vscode', 'settings.json'); - if (!(await fs.pathExists(settingsPath))) { - await fs.writeFile( - settingsPath, - `{ - "terminal.integrated.defaultProfile.linux": "pwsh", - "terminal.integrated.defaultProfile.osx": "pwsh", - "terminal.integrated.defaultProfile.windows": "pwsh" - }`, - ); - } -} -if (process.env.TEST_FILES_SUFFIX !== 'smoke.test') { - setupWorkspace().catch((err) => { - console.error('Failed to setup workspace for smoke test', err); - process.exit(1); - }); -} - /** * Smoke tests & tests running in VSCode require Jupyter extension to be installed. */