Update yarn dev-vscode to build tests with dev mode (i.e. watch and recompile)#979
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
@seeM I am trying to understand the workflow you are describing. What is the test pane? Is this it? I don't see any tests here when I open the repo. My personal workflow is to keep |
|
@seeM explained to me in Slack:
He is using this extension to populate the test pane with extension tests: https://marketplace.visualstudio.com/items?itemName=ms-vscode.extension-test-runner |
|
I tried this PR locally and was still getting stale tests when using the extension. I noticed the |
vezwork
left a comment
There was a problem hiding this comment.
Working well for me locally! A bit hard to test, but it should address all stale test issues we've been facing and doesn't have much of a downside.

Previously, if you ran the VS Code extension's tests from the test pane it would not trigger a recompile and would run stale tests. You had to use
yarn test-vscode.This PR updates
yarn dev-vscode(more specifically,apps/vscode/build.ts) to also build tests withdevmode (i.e. a watch server that automatically recompiles).