Fix typechecks

This commit is contained in:
Alejandro Celaya 2025-12-08 10:58:40 +01:00
parent 4f2f3e3aea
commit 10ca9bd457
5 changed files with 179 additions and 432 deletions

603
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@ describe('<MainHeader />', () => {
history.push(pathname); history.push(pathname);
return renderWithStore( return renderWithStore(
<Router location={history.location} navigator={history}> <Router location={history.location} navigator={history} unstable_useTransitions={false}>
<MainHeader /> <MainHeader />
</Router>, </Router>,
); );

View File

@ -29,7 +29,7 @@ describe('<CreateServer />', () => {
return { return {
history, history,
...renderWithStore( ...renderWithStore(
<Router location={history.location} navigator={history}> <Router location={history.location} navigator={history} unstable_useTransitions={false}>
<CreateServer useTimeoutToggle={useTimeoutToggle} /> <CreateServer useTimeoutToggle={useTimeoutToggle} />
</Router>, </Router>,
{ {

View File

@ -11,7 +11,7 @@ describe('<DeleteServerButton />', () => {
const setUp = (children: ReactNode = 'Remove this server') => { const setUp = (children: ReactNode = 'Remove this server') => {
const history = createMemoryHistory({ initialEntries: ['/foo'] }); const history = createMemoryHistory({ initialEntries: ['/foo'] });
const result = renderWithStore( const result = renderWithStore(
<Router location={history.location} navigator={history}> <Router location={history.location} navigator={history} unstable_useTransitions={false}>
<DeleteServerButton server={fromPartial({})}>{children}</DeleteServerButton> <DeleteServerButton server={fromPartial({})}>{children}</DeleteServerButton>
</Router>, </Router>,
); );

View File

@ -20,7 +20,7 @@ describe('<EditServer />', () => {
return { return {
history, history,
...renderWithStore( ...renderWithStore(
<Router location={history.location} navigator={history}> <Router location={history.location} navigator={history} unstable_useTransitions={false}>
<EditServer /> <EditServer />
</Router>, </Router>,
{ {