persona-community-5/.pnpm-store/v3/files/e0/66474adfab31a4ec2634c17e47371a5a54804c6814b3d57ccf6e4d4277a70dc4f20de1504940fd91571bb5e14b12e9b2c630124fe2f74ab22b0e63760e29c8
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

16 lines
403 B
Plaintext

import { output } from '../output';
describe('output', () => {
it('should write all parsable data to stdout', () => {
const spyingStdout = jest.spyOn(process.stdout, 'write').mockImplementation();
const data = '{ "errors" : [] }';
output.write(data);
expect(spyingStdout).toBeCalledTimes(1);
expect(spyingStdout).toBeCalledWith(data);
spyingStdout.mockRestore();
});
});