test(windows): enforce native coverage

This commit is contained in:
Tianyi Cui
2026-08-08 18:52:41 +08:00
parent 9b169f7555
commit ce073eeef7
8 changed files with 33 additions and 20 deletions

View File

@@ -42,12 +42,21 @@ describe('CI workflow', () => {
expect(windows['runs-on']).toBe('windows-2025')
expect(windows.name).toBe('windows node 24 / native complete')
expect(windows.env).toMatchObject({ DSH_COVERAGE_MAX_WORKERS: '4' })
expect(commandSteps).toHaveLength(3)
expect(commandSteps.every(step => step.shell === 'pwsh')).toBe(true)
expect(commandSteps.map(step => step.run)).toContain('pnpm run check:ci:windows-complete')
expect(JSON.stringify(windows)).not.toMatch(/wine/i)
expect(workflow.jobs).not.toHaveProperty('wine-apt-cache')
})
it('keeps supported LSP source under native Windows coverage', () => {
const config = readFileSync(resolve(root, 'vitest.config.ts'), 'utf8')
expect(config).not.toContain('packages/lsp/lsp-local/src/connection.ts')
expect(config).not.toContain('packages/lsp/lsp-local/src/index.ts')
expect(config).not.toContain('packages/lsp/lsp-local/src/instance.ts')
})
})
describe('Issue lifecycle workflow', () => {