From 9dd0655f042705be8e7da0b0180225a9e9eb4292 Mon Sep 17 00:00:00 2001 From: changfeng Date: Thu, 1 Jun 2023 05:46:18 +0800 Subject: [PATCH] tests: ansi characters --- package.json | 2 +- tests/plugin.test.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 01b0449..d2047d5 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "lint:fix": "pnpm run lint --fix", "build": "tsup && tsx scripts/postbuild.mts", "dev": "tsup --watch", - "test": "vitest", + "test": "vitest --test-timeout=10000", "release": "bumpp && pnpm publish", "prepublishOnly": "pnpm run build" }, diff --git a/tests/plugin.test.ts b/tests/plugin.test.ts index 4f4dee8..8480fde 100644 --- a/tests/plugin.test.ts +++ b/tests/plugin.test.ts @@ -13,6 +13,9 @@ const exec = async (command: string) => { const result = await execa(cmd, args, { cwd: testCwd, preferLocal: true, + env: { + NO_COLOR: 'true', + }, }); return result; };