test(ui-truncate-text): migrate old TruncateText tests #4285
pr-validation.yml
on: pull_request
Lint commit msg + code
3m 54s
Vitest unit tests
3m 45s
Cypress component tests
3m 45s
Legacy unit tests
3m 54s
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.
|