Skip to content

Conversation

@pete-the-pete
Copy link

@pete-the-pete pete-the-pete commented Jan 10, 2026

Summary

Fixes #118

Modernizes the VS Code extension testing setup by migrating to the new @vscode/test-cli package.

Changes

  • Add .vscode-test.mjs configuration file using @vscode/test-cli API
  • Update test script in package.json to use vscode-test command
  • Upgrade @vscode/test-electron from ^2.1.5 to ^2.5.2
  • Add @vscode/test-cli (^0.0.12) as dev dependency
  • Add Mocha environment configuration for ESLint compatibility
  • Optimize runTest.js to reuse local VS Code installation

Benefits

  • Cleaner, more maintainable test configuration
  • Faster test execution (reuses existing VS Code install)
  • Better alignment with official VS Code extension development guidelines

🤖 Generated with Claude Code

Switch from custom runTest.js to the official @vscode/test-cli which
resolves ENOENT errors when running tests. Update test files to use
global mocha functions instead of explicit imports.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to @vscode/test-cli for modern test infrastructure

1 participant