test: fix useConsoleMessages tests

This commit is contained in:
mkorwel
2026-04-17 22:56:15 +00:00
parent 669d1339ee
commit a8dc29e731
@@ -88,7 +88,12 @@ describe('useConsoleMessages', () => {
hookResult = useTestableConsoleMessages();
return null;
}
const { unmount } = await render(<TestComponent />);
const { unmount } = await render(
<TestComponent />,
undefined,
undefined,
true,
);
unmounts.push(unmount);
return {
result: {
@@ -177,7 +182,12 @@ describe('useErrorCount', () => {
hookResult = useErrorCount();
return null;
}
const { unmount } = await render(<TestComponent />);
const { unmount } = await render(
<TestComponent />,
undefined,
undefined,
true,
);
unmounts.push(unmount);
return {
result: {