Refactor FocalPointPicker unit test to tsx #102081
Annotations
10 errors and 1 warning
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L19
Type '{ onChange: Mock<any, any, any>; }' is missing the following properties from type '{ __nextHasNoMarginBottom?: boolean | undefined; __next40pxDefaultSize?: boolean | undefined; autoPlay?: boolean | undefined; onChange: (value: FocalPoint) => void; ... 5 more ...; value: FocalPoint; }': url, value
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L34
Type '{ onChange: Mock<any, any, any>; onDrag: Mock<any, any, any>; onDragEnd: Mock<any, any, any>; }' is missing the following properties from type '{ __nextHasNoMarginBottom?: boolean | undefined; __next40pxDefaultSize?: boolean | undefined; autoPlay?: boolean | undefined; onChange: (value: FocalPoint) => void; ... 5 more ...; value: FocalPoint; }': url, value
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L60
Variable 'logs' implicitly has type 'any[]' in some locations where its type cannot be determined.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L61
Parameter 'name' implicitly has an 'any' type.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L61
Parameter 'args' implicitly has an 'any' type.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L65
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L65
Rest parameter 'all' implicitly has an 'any[]' type.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L68
Type '{}' is missing the following properties from type '{ __nextHasNoMarginBottom?: boolean | undefined; __next40pxDefaultSize?: boolean | undefined; autoPlay?: boolean | undefined; onChange: (value: FocalPoint) => void; ... 5 more ...; value: FocalPoint; }': onChange, url, value
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L80
Variable 'logs' implicitly has an 'any[]' type.
|
Npm build:
packages/components/src/focal-point-picker/test/index.tsx#L94
Property 'url' is missing in type '{ value: { x: number; y: number; }; onChange: Mock<any, any, any>; resolvePoint: () => { x: number; y: number; }; }' but required in type '{ __nextHasNoMarginBottom?: boolean | undefined; __next40pxDefaultSize?: boolean | undefined; autoPlay?: boolean | undefined; onChange: (value: FocalPoint) => void; ... 5 more ...; value: FocalPoint; }'.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading