Removing orphaned scaffolding
.vscode-test.mjs imported @vscode/test-cli (not a dependency) and globbed out/test/**/*.test.js, which never exists — esbuild emits a single out/test.cjs. No script ran it. It only stood to mislead a maintainer into thinking a VS Code integration suite existed. This PR deletes it.
The command-registration invariant, already covered without a live editor.
test/commandIds.test.ts · 18 lines
test/commandIds.test.ts
1import { readFileSync } from 'node:fs';
2import { join } from 'node:path';
3import { describe, it } from 'node:test';
4import assert from 'node:assert/strict';
5import { COMMAND_IDS } from '../src/commands';
7interface Manifest {
8 readonly contributes: { readonly commands: ReadonlyArray<{ readonly command: string }> };
9}
11describe('command IDs ↔ manifest (guards the v1 testRemoveValue/testRemoveValues drift)', () => {
12 it('the registry and package.json contribute exactly the same command ids', () => {
13 const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8')) as Manifest;
14 const manifestIds = pkg.contributes.commands.map((c) => c.command).sort();
15 const registryIds = [...Object.values(COMMAND_IDS)].sort();
16 assert.deepEqual(registryIds, manifestIds);
17 });
18});