Skip to content

Refactor package

Refactor package #38

Triggered via pull request December 28, 2024 20:36
@nckhellnckhell
synchronize #14
v2
Status Failure
Total duration 45s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
test: src/calculation_suite/calculations/10_meter_walk_test/10_meter_walk_test.test.ts#L8
Argument of type 'CalculationType<ZodObject<{ TRIAL_1: ZodNumber; TRIAL_2: ZodOptional<ZodNumber>; TRIAL_3: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, { ...; }>' is not assignable to parameter of type 'Omit<CalculationType<CalculationInputSchema, { TMWT_MEAN_IN_SECONDS: { label: { en: string; nl: string; }; type: ZodNumber; unit: { en: string; }; }; TMWT_MEAN_IN_METERS_PER_SECOND: { ...; }; TMWT_MEAN_IN_KILOMETERS_PER_HOUR: { ...; }; }>, "schema"> & { ...; }'.
test: src/calculation_suite/calculations/10_meter_walk_test/10_meter_walk_test.ts#L11
Type 'ZodObject<{ TRIAL_1: ZodNumber; TRIAL_2: ZodOptional<ZodNumber>; TRIAL_3: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { ...; }, { ...; }>' does not satisfy the constraint 'CalculationInputSchema'.
test: src/calculation_suite/calculations/10_meter_walk_test/10_meter_walk_test.ts#L18
Type '{ TRIAL_1: { input_label: { en: string; nl: string; }; }; TRIAL_2: { input_label: { en: string; nl: string; }; }; TRIAL_3: { input_label: { en: string; nl: string; }; }; }' is missing the following properties from type '{ _getCached: Pick<InputType, "info" | "input_label" | "format">; _parse: Pick<InputType, "info" | "input_label" | "format">; readonly shape: Pick<InputType, "info" | ... 1 more ... | "format">; ... 51 more ...; isNullable: Pick<...>; }': _getCached, _parse, shape, strict, and 51 more.
test: src/calculation_suite/calculations/10_meter_walk_test/10_meter_walk_test.ts#L22
Argument of type 'unknown[]' is not assignable to parameter of type 'readonly number[]'.
test: src/calculation_suite/calculations/10_meter_walk_test/10_meter_walk_test.ts#L26
Argument of type 'unknown[]' is not assignable to parameter of type 'readonly number[]'.
test: src/calculation_suite/calculations/CHA2DS2_VASc_Score/CHA2DS2_VASc_Score.test.ts#L4
Cannot find module '../../lib/execute_test_calculation' or its corresponding type declarations.
test: src/calculation_suite/calculations/CHA2DS2_VASc_Score/CHA2DS2_VASc_Score.test.ts#L5
Cannot find module '../../lib/get_result_ids_from_calculation_output' or its corresponding type declarations.
test: src/calculation_suite/calculations/CHA2DS2_VASc_Score/CHA2DS2_VASc_Score.test.ts#L6
Cannot find module '../../lib/view_result' or its corresponding type declarations.
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test: src/api/shared/services/calculations.service.ts#L48
Unexpected any. Specify a different type
test: src/api/shared/services/calculations.service.ts#L48
Unexpected any. Specify a different type
test: src/calculation_suite/calculations/promis_10/helpers/calculate_t_score.ts#L5
Unexpected any. Specify a different type
test: src/calculation_suite/lib/zodInputSchemaToJson/zodInputSchemaToJson.ts#L6
Unexpected any. Specify a different type
test: src/calculation_suite/lib/zodInputSchemaToJson/zodInputSchemaToJson.ts#L9
Unexpected any. Specify a different type
test: src/calculation_suite/lib/zodInputSchemaToJson/zodInputSchemaToJson.ts#L16
Unexpected any. Specify a different type
test: src/calculation_suite/lib/zodInputSchemaToJson/zodInputSchemaToJson.ts#L27
Unexpected any. Specify a different type
test: src/calculation_suite/lib/zodInputSchemaToJson/zodInputSchemaToJson.ts#L56
Unexpected any. Specify a different type