ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- description: VS Code test writing guidelines — unit tests, integration tests, snapshot tests, and clean teardown patterns. Reference when writing or updating tests. applyTo: "{src/vs//test/,src/vs/**/*.test.ts,src/vs/**/*.integrationTest.ts}" ---
Canonical reference: https://github.com/microsoft/vscode/wiki/Writing-Tests
| Type | File suffix | Location | Runs in | |------|-------------|----------|---------| | Unit tests | .test.ts | src/vs/**/test/ | Browser, Electron, or Node.js (depends on layer) | | Integration tests | .integrationTest.ts | src/vs/**/test/ | Real external APIs | | Extension tests | Standard extension test system | extensions/*/ | Extension host |
scripts/test.sh (macOS/Linux) or scripts/test.bat (Windows)--grep <pattern>--runGlob **/myFile.test.jsscripts/test-integration.sh or scripts/test-integration.batTests use Mocha's BDD interface (suite/test) with the assert module and sinon for mocks.
Always use ensureNoDisposablesAreLeakedInTestSuite() to catch disposal leaks:
suite('myTests', () => {
const store = ensureNoDisposablesAreLeakedInTestSuite();
test('example', () => {
const disposable = store.add(new MyDisposable());
// ...
});
});Always call sinon.restore() in teardown to avoid leaking mocks.
assert.deepStrictEqual snapshot over many fine-grained assertionssuite blockdescribe/test or suite/test) consistently within a file(mainWindow as any).X = ...) — make dependencies injectable insteadUse assertSnapshot for Jest-like snapshot tests. Snapshots are written to a __snapshots__ directory beside the test file on first run — verify the output is correct, then subsequent runs compare against it.