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);
return renderWithStore(
<Router location={history.location} navigator={history}>
<Router location={history.location} navigator={history} unstable_useTransitions={false}>
<MainHeader />
</Router>,
);

View File

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

View File

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

View File

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