From 39883e7b9e00fc8e52d24f9f914d0cbee949ba19 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 17 Mar 2022 06:55:25 +0800 Subject: [PATCH] chore: skip custom reporter tests in windows --- test/reporters/tests/custom-reporter.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/reporters/tests/custom-reporter.spec.ts b/test/reporters/tests/custom-reporter.spec.ts index f63075ce9..002369fe1 100644 --- a/test/reporters/tests/custom-reporter.spec.ts +++ b/test/reporters/tests/custom-reporter.spec.ts @@ -3,6 +3,10 @@ import { resolve } from 'pathe' import { expect, test } from 'vitest' test('custom reporters work', async() => { + // in Windows child_process is very unstable, we skip testing it + if (process.platform === 'win32' && process.env.CI) + return + const root = resolve(__dirname, '..') const { stdout } = await execa('npx', ['vitest', 'run', '--config', 'custom-reporter.vitest.config.ts'], { -- 2.51.2