Skip to content

Commit

Permalink
tests: line ending on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
changfeng committed May 31, 2023
1 parent 9dd0655 commit 67af5ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 67af5ae

Please sign in to comment.