test(windows): stabilize native coverage

This commit is contained in:
Tianyi Cui
2026-08-09 02:29:09 +08:00
parent 1ce84853de
commit 94799abfb0
10 changed files with 54 additions and 17 deletions

View File

@@ -42,7 +42,7 @@ 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(windows.env).toMatchObject({ DSH_COVERAGE_MAX_WORKERS: '1' })
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')

View File

@@ -19,7 +19,7 @@ import {
const driver = fileURLToPath(new URL('./merge-translation-pairing.ts', import.meta.url))
const driverLauncher = fileURLToPath(new URL('./merge-translation-pairing-driver.sh', import.meta.url))
const workspaceRoot = fileURLToPath(new URL('../', import.meta.url))
const tsxLoader = fileURLToPath(import.meta.resolve('tsx/esm'))
const tsxLoader = import.meta.resolve('tsx/esm')
const fixtures: string[] = []
interface Fixture {
@@ -225,7 +225,7 @@ function expectMergedPair(fixture: Fixture): void {
)
}
describe('translation pairing merge composition', () => {
describe('translation pairing merge composition', { timeout: 15_000 }, () => {
it('rejects a pairing-record path outside the repository', () => {
const fixture = createFixture(false)