Skip to content

Portal frontend 31 #251

Portal frontend 31

Portal frontend 31 #251

Triggered via pull request August 13, 2024 12:10
Status Failure
Total duration 1m 7s
Artifacts

main.yml

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

Annotations

10 errors
main / test / test-js-code: src/api/index.ts#L2
Cannot find module 'codeforlife/utils/auth' or its corresponding type declarations.
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/register/TeacherForm.tsx#L40
Object literal may only specify known properties, and 'exclude' does not exist in type '{ then?: ((result: CreateTeacherResult) => 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/DeleteAccountForm.tsx#L11
Cannot find module 'codeforlife/utils/auth' or its corresponding type declarations.
main / test / test-js-code: src/pages/studentAccount/StudentAccount.tsx#L19
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'.