Skip to content

Commit

Permalink
Mock stdin utility in test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Feb 18, 2025
1 parent 436f2e9 commit f5b8435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jest.mock('wrap-ansi')
jest.mock('./src/utils/stdin')

require('css.escape') // Polyfill for CSS.escape

Expand Down
1 change: 1 addition & 0 deletions src/utils/__mocks__/stdin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const getStdin = async () => Buffer.alloc(0)

0 comments on commit f5b8435

Please sign in to comment.