Skip to content

Commit

Permalink
Set defauult encoding utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Aug 13, 2021
1 parent c9251e8 commit 6d3c0b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ class CLIMock {
);

if (this.stdinStr) {
this.process.stdin.setDefaultEncoding('utf8');
this.process.stdin.write(this.stdinStr);
this.process.stdin.end();
}
Expand Down

0 comments on commit 6d3c0b0

Please sign in to comment.