Skip to content

improve form cleaning #236

improve form cleaning

improve form cleaning #236

Triggered via push August 12, 2024 16:20
Status Failure
Total duration 1m 11s
Artifacts

main.yml

on: push
main  /  ...  /  validate-pr-refs
0s
main / validate-pr-refs / validate-pr-refs
main  /  ...  /  test-js-code
1m 0s
main / test / test-js-code
Fit to window
Zoom out
Zoom in

Annotations

10 errors
main / test / test-js-code: src/pages/register/IndyForm.tsx#L43
Object literal may only specify known properties, and 'exclude' does not exist in type '{ then?: ((result: CreateIndependentUserResult) => void) | undefined; catch?: ((error: Error) => void) | undefined; finally?: (() => void) | undefined; }'.
main / test / test-js-code: src/pages/resetPassword/PasswordForm.tsx#L54
Object literal may only specify known properties, and 'exclude' does not exist in type '{ then?: ((result: ResetPasswordResult) => void) | undefined; catch?: ((error: Error) => void) | undefined; finally?: (() => void) | undefined; }'.
main / test / test-js-code: src/pages/studentAccount/StudentAccount.tsx#L18
Property 'subheader' is missing in type '{ header: string; textAlign: "center"; bgcolor: "secondary" | "tertiary"; }' but required in type 'BannerProps'.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L3
Module '"codeforlife/utils/form"' has no exported member 'getDirty'.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L3
Module '"codeforlife/utils/form"' has no exported member 'isDirty'.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L74
Parameter 'values' implicitly has an 'any' type.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L90
Type '(_: any, values: any) => void' is not assignable to type '(result: UpdateUserResult) => void'.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L90
Parameter '_' implicitly has an 'any' type.
main / test / test-js-code: src/pages/studentAccount/UpdateAccountForm.tsx#L90
Parameter 'values' implicitly has an 'any' type.
main / test / test-js-code
Process completed with exit code 2.