mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client): migrate to Gatsby v5 and React 18 (#65729)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import React, { type ReactElement } from 'react';
|
||||
import React, { type ReactElement, type ReactNode } from 'react';
|
||||
import { render as rtlRender } from '@testing-library/react';
|
||||
import { Provider } from 'react-redux';
|
||||
import type { Store } from 'redux';
|
||||
|
||||
function render(ui: ReactElement, store: Store) {
|
||||
function Wrapper({ children }: { children: ReactElement }) {
|
||||
function Wrapper({ children }: { children: ReactNode }) {
|
||||
return <Provider store={store}>{children}</Provider>;
|
||||
}
|
||||
return rtlRender(ui, { wrapper: Wrapper });
|
||||
|
||||
Reference in New Issue
Block a user