Skip to content

test(ui-truncate-text): migrate old TruncateText tests #4285

test(ui-truncate-text): migrate old TruncateText tests

test(ui-truncate-text): migrate old TruncateText tests #4285

Status Failure
Total duration 4m 6s
Artifacts

pr-validation.yml

on: pull_request
Lint commit msg + code
3m 54s
Lint commit msg + code
Vitest unit tests
3m 45s
Vitest unit tests
Cypress component tests
3m 45s
Cypress component tests
Legacy unit tests
3m 54s
Legacy unit tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Cypress component tests: packages/ui-truncate-text/src/TruncateText/utils/__new-tests__/measureText.test.tsx#L143
Property 'mock' does not exist on type '{ (contextId: "2d", options?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D | null; (contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings | undefined): ImageBitmapRenderingContext | null; (contextId: "webgl", options?: WebGLContextAttributes | undefined): WebGLRenderin...'.
Cypress component tests
Process completed with exit code 2.
Vitest unit tests: packages/ui-truncate-text/src/TruncateText/utils/__new-tests__/measureText.test.tsx#L143
Property 'mock' does not exist on type '{ (contextId: "2d", options?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D | null; (contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings | undefined): ImageBitmapRenderingContext | null; (contextId: "webgl", options?: WebGLContextAttributes | undefined): WebGLRenderin...'.
Vitest unit tests
Process completed with exit code 2.
Lint commit msg + code: packages/ui-truncate-text/src/TruncateText/utils/__new-tests__/measureText.test.tsx#L143
Property 'mock' does not exist on type '{ (contextId: "2d", options?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D | null; (contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings | undefined): ImageBitmapRenderingContext | null; (contextId: "webgl", options?: WebGLContextAttributes | undefined): WebGLRenderin...'.
Lint commit msg + code
Process completed with exit code 2.
Legacy unit tests: packages/ui-truncate-text/src/TruncateText/utils/__new-tests__/measureText.test.tsx#L143
Property 'mock' does not exist on type '{ (contextId: "2d", options?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D | null; (contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings | undefined): ImageBitmapRenderingContext | null; (contextId: "webgl", options?: WebGLContextAttributes | undefined): WebGLRenderin...'.
Legacy unit tests
Process completed with exit code 2.