feat: clean frontend test logs (#1894)

This commit is contained in:
Chaim Lev-Ari
2026-02-22 07:42:49 +00:00
committed by GitHub
parent caf6b2aa0c
commit 2bbcae39b6
13 changed files with 141 additions and 30 deletions
@@ -18,6 +18,7 @@ import { withUserProvider } from '@/react/test-utils/withUserProvider';
import { useApiVersion } from '@/react/docker/proxy/queries/useVersion';
import { http, server } from '@/setup-tests/server';
import { DeepPartial } from '@/types';
import { suppressConsoleLogs } from '@/setup-tests/suppress-console';
import { StackRedeployGitForm } from './StackRedeployGitForm';
@@ -553,6 +554,10 @@ describe('StackRedeployGitForm', () => {
});
describe('Error handling', () => {
// Suppress console logs for error handling tests
const restoreConsole = suppressConsoleLogs();
afterAll(restoreConsole);
it('should handle updateGitStack mutation errors gracefully', async () => {
const user = userEvent.setup();
server.use(