Skip to main content
This test launches VS Code with provision.vscode() and waits for its window to appear.

Watch it run

The test

launch-vscode-linux.test.mjs

How it works

  • provision.vscode() starts VS Code in the sandbox.
  • timeout: 60000 makes find() keep checking for up to 60 seconds. This gives VS Code time to start.
  • found() returns true once the window is on screen.
  • it.skipIf(!isLinux) skips the test when TD_OS is set to windows.

Run it

The test is in the TestDriver SDK repository. Clone it, install dependencies, and run the file:
The test reads your API key from TD_API_KEY. Create a key at console.testdriver.ai/team/api-keys. Then set it in your environment or a .env file.