Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #309

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore type errors for mocks
mmalfertheiner committed Mar 27, 2024

Verified

This commit was signed with the committer’s verified signature.
mmalfertheiner Martin Malfertheiner
commit 49ad912548e8d8f2d654c9e7e940a5dcfabbdbd0
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@
set -e
set -o pipefail

# npm run checks
npm run checks
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@
"devDependencies": {
"@aboutbits/eslint-config": "^2.2.4",
"@aboutbits/prettier-config": "^1.6.1",
"@aboutbits/react-pagination": "^3.0.11",
"@aboutbits/react-pagination": "git+ssh://[email protected]:aboutbits/react-pagination.git#991eb51a8d51f8556caf940f97ef2b6b996ac427",
"@aboutbits/ts-config": "^1.1.3",
"@hookform/resolvers": "^3.3.4",
"@storybook/addon-essentials": "^7.4.1",
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { AsyncView } from '@aboutbits/react-toolbox'
import { ReactElement, ReactNode } from 'react'
import { FormProvider, useForm } from 'react-hook-form'
import { IndexType } from '@aboutbits/pagination'
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/cjs/routers/inMemory'
import { useQueryAndPagination } from '@aboutbits/react-pagination/dist/routers/inMemory'
import { useInternationalization, useTheme } from '../../../framework'
import {
Dialog,
Original file line number Diff line number Diff line change
@@ -110,6 +110,7 @@ describe('useHandleSubmit', () => {

const onSuccess = vi.fn(() => undefined)
const { result } = renderHook(() =>
// @ts-expect-error The mock function has not the right type
useHandleSubmit(form.current, submitAction, { onSuccess }),
)

@@ -138,7 +139,9 @@ describe('useHandleSubmit', () => {
const onError = vi.fn(() => undefined)
const { result } = renderHook(() =>
useHandleSubmit(form.current, onDeleteWithErrorResponse, {
// @ts-expect-error The mock function has not the right type
onSuccess,
// @ts-expect-error The mock function has not the right type
onError,
}),
)