ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
--- applyTo: '**/*.spec.ts' description: Vitest unit testing guidelines ---
Please follow these guidelines when writing unit tests using Vitest. These tests are *.spec.ts
as any to override private methods or assign properties on real objects.Mock* or Test*, you can search to find whether one already exists.MockFileSystemService, MockChatResponseStream, TestTasksService.test/ folder near the interface definition.createExtensionUnitTestingServices returns a TestingServiceCollection preconfigured with some common mock services, use IInstantiationService to create instances with those mocks. Here's an example of using it properlyconst serviceCollection = store.add(createExtensionUnitTestingServices());
instantiationService = serviceCollection.createTestingAccessor().get(IInstantiationService);
const mockFs = accessor.get(IFileSystemService) as MockFileSystemService;
const testService = instantiationService.createInstance(SomeServiceToTest);beforeEach to set up common state.