Feat/add-REST-API #181
continuous-integration.yml
on: pull_request
Run ESLint
28s
Run TypeScript type checks
50s
Run tests
33s
Build project
38s
Annotations
13 errors
Run ESLint
Process completed with exit code 1.
|
Run tests
Process completed with exit code 1.
|
Build project
Process completed with exit code 1.
|
Run TypeScript type checks:
components/Habits/ViewHabits.tsx#L148
Expected 1 arguments, but got 0.
|
Run TypeScript type checks:
pages/add-habit.page.tsx#L183
Type 'number' is not assignable to type 'Decimal'.
|
Run TypeScript type checks:
pages/add-habit.test.tsx#L10
Property 'goalsProp' is missing in type '{}' but required in type 'AddHabitProps'.
|
Run TypeScript type checks:
pages/api/goals/controller.ts#L1
Cannot find module 'date-fns' or its corresponding type declarations.
|
Run TypeScript type checks:
pages/api/goals/controller.ts#L66
No overload matches this call.
|
Run TypeScript type checks:
pages/api/habits/[habitId].api.ts#L2
Module '"/home/runner/work/habit-tracker/habit-tracker/src/api/habits/index"' has no default export.
|
Run TypeScript type checks:
pages/api/habits/index.api.ts#L13
Property 'frequencyCount' does not exist on type 'HabitFlat'.
|
Run TypeScript type checks:
pages/api/habits/index.api.ts#L23
Type '{ name: string; description: string | null; frequencyUnit: "daily" | "weekly" | "monthly"; frequencyCount: any; targetUnit: string; targetQuantity: number; streak: number; }' is not assignable to type '(Without<HabitCreateInput, HabitUncheckedCreateInput> & HabitUncheckedCreateInput) | (Without<...> & HabitCreateInput)'.
|
Run TypeScript type checks:
pages/index.test.tsx#L31
Type '{}' is missing the following properties from type 'HomeProps': goalsProp, userId
|
Run TypeScript type checks:
src/api/habits/adapters/json.test.ts#L8
Conversion of type '{ name: string; description: string; habits: ({ id: string; name: string; frequency: { unit: string; count: number; }; target: { quantity: number; unit: string; }; entries: { id: string; completionDate: Date; quantity: number; }[]; streak: number; } | { ...; })[]; }[]' to type 'GoalWithHabitHistory[]' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|