Skip to content

Commit

Permalink
test: fix e2e test case
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Oct 15, 2024
1 parent 1721269 commit e269ebf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/e2e/globalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath } from '@vscode/test-electron';

import * as semver from "semver";
const config = require('../../../package.json');
const vscodeVer = config.engines.vscode;
const vscodeVersion = semver.minVersion(vscodeVer)!.version;
export default async () => {
const vscodePath = await downloadAndUnzipVSCode('insiders');
const vscodePath = await downloadAndUnzipVSCode(vscodeVersion!);
resolveCliArgsFromVSCodeExecutablePath(vscodePath);
};

0 comments on commit e269ebf

Please sign in to comment.