From 67af5ae9ca39518e4e0bc04e00c09d452454d493 Mon Sep 17 00:00:00 2001 From: changfeng Date: Thu, 1 Jun 2023 05:51:28 +0800 Subject: [PATCH] tests: line ending on windows --- tests/plugin.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/plugin.test.ts b/tests/plugin.test.ts index 8480fde..9cd93ca 100644 --- a/tests/plugin.test.ts +++ b/tests/plugin.test.ts @@ -17,7 +17,10 @@ const exec = async (command: string) => { NO_COLOR: 'true', }, }); - return result; + return { + stderr: result.stderr.replaceAll('\r?\n?', '\n'), + stdout: result.stdout.replaceAll('\r?\n?', '\n'), + }; }; test('vite esm', async () => {