Files
colanode/apps/web/test/test-utils.tsx
Ylber Gashi 075c835286 Web: add test setup and first tests (#313)
* test(server): add vitest harness and initial integration tests
* add web test setup and initial tests
2026-02-09 15:24:22 +01:00

17 lines
516 B
TypeScript

import { render, RenderOptions } from '@testing-library/react';
import { ReactElement, ReactNode } from 'react';
/**
* Custom render function that wraps components with common providers.
*/
export function customRender(ui: ReactElement, options?: RenderOptions) {
const Wrapper = ({ children }: { children: ReactNode }) => {
// Add any providers here if needed in the future
return <>{children}</>;
};
return render(ui, { wrapper: Wrapper, ...options });
}
export * from '@testing-library/react';