diff --git a/jest.setup.js b/jest.setup.js index 29e7d628..54ee4e98 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -1,4 +1,5 @@ jest.mock('wrap-ansi') +jest.mock('./src/utils/stdin') require('css.escape') // Polyfill for CSS.escape diff --git a/src/utils/__mocks__/stdin.ts b/src/utils/__mocks__/stdin.ts new file mode 100644 index 00000000..709a6eb5 --- /dev/null +++ b/src/utils/__mocks__/stdin.ts @@ -0,0 +1 @@ +export const getStdin = async () => Buffer.alloc(0)