Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 18, 2024
1 parent e69204b commit 8ea1f20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const data = [
},
{
age: 22,
bigData: 'c'.repeat(30),
employed: ansis.bold('false'),
id: terminalLink('51786', 'https://example.com/51786'),
name: 'Charlie',
Expand Down
2 changes: 2 additions & 0 deletions src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ class Output {
public stream: Stream | WriteStream

public constructor() {
// Use process.stdout if NODE_ENV is `test` OR if tests are being run by wireit on windows (windows + tests run by wireit
// are problematic for an unknown reason)
this.stream =
(process.platform === 'win32' && process.env.npm_lifecycle_script === 'wireit') || process.env.NODE_ENV === 'test'
? process.stdout
Expand Down

0 comments on commit 8ea1f20

Please sign in to comment.