vscode extension test run modifies package.json after 1.67.0 #148975
Closed
Description
Our presubmit tests started to fail consistently since our test setup picked up code 1.67.0 yesterday.
golang/vscode-go#2230
Our test is basically doing
- first, run extension tests written with
runTests
from@vscode/test-electron
- after the extension tests succeed, run a check on the consistency between our
package.json
file and documentation/settings info.
After running the extension tests with 1.67.0, it looks like the second step that involves reading package.json sees a differently formatted package.json. Actually, it's not only a differently formatted package.json, but it includes a new "__metadata"
property (id
, publisherId
, ...) at the end.
The test passes if I make the extension tests to use 1.66.2.
We can work around by arranging our presubmit test order or rewriting our package.json
test logic to handle this.
But, we want to understand what is going on behind the scene and why this package.json modification is necessary.
Thanks!