Just a whole lot of crap
This commit is contained in:
22
tests/__mocks__/ink-testing-library.js
Normal file
22
tests/__mocks__/ink-testing-library.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Mock for ink-testing-library
|
||||
const React = require("react");
|
||||
|
||||
const render = (component) => {
|
||||
// Simple mock that just returns a basic structure
|
||||
return {
|
||||
lastFrame: () => "Mocked render output",
|
||||
frames: ["Mocked render output"],
|
||||
unmount: jest.fn(),
|
||||
rerender: jest.fn(),
|
||||
stdin: {
|
||||
write: jest.fn(),
|
||||
},
|
||||
stdout: {
|
||||
write: jest.fn(),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
render,
|
||||
};
|
||||
Reference in New Issue
Block a user