Skip to content

Commit 67af5ae

Browse files
author
changfeng
committed
tests: line ending on windows
1 parent 9dd0655 commit 67af5ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/plugin.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const exec = async (command: string) => {
1717
NO_COLOR: 'true',
1818
},
1919
});
20-
return result;
20+
return {
21+
stderr: result.stderr.replaceAll('\r?\n?', '\n'),
22+
stdout: result.stdout.replaceAll('\r?\n?', '\n'),
23+
};
2124
};
2225

2326
test('vite esm', async () => {

0 commit comments

Comments
 (0)