Publish ITWorx Pulse source
Public source validation / validate (push) Failing after 3m8s

This commit is contained in:
ITWorx Pulse release export
2026-09-03 02:09:19 +02:00
commit bd774932d5
614 changed files with 77116 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { render, screen } from '@testing-library/react';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { ArrayPage } from '../../src/ArrayPage';
afterEach(() => vi.unstubAllGlobals());
describe('ArrayPage', () => {
it('renders a bounded empty state when an older snapshot contains null collections', async () => {
vi.stubGlobal('fetch', vi.fn(async () => new Response(JSON.stringify({
contractVersion: '1',
source: { id: 'array', state: 'unknown', freshness: 'unavailable' },
state: 'unknown',
parity: { present: false, state: 'unknown', errors: 0 },
members: null,
history: null,
}), { status: 200, headers: { 'Content-Type': 'application/json' } })));
render(<ArrayPage />);
expect(await screen.findByRole('heading', { level: 1, name: 'Array en parity' })).toBeVisible();
expect(screen.queryByRole('alert')).not.toBeInTheDocument();
});
});