mirror of
https://github.com/colanode/colanode.git
synced 2026-02-24 11:59:53 +01:00
* test(server): add vitest harness and initial integration tests * add web test setup and initial tests
17 lines
516 B
TypeScript
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';
|