Skip to content

fix: always throw errors & always use named Error classes #1310

fix: always throw errors & always use named Error classes

fix: always throw errors & always use named Error classes #1310

Triggered via pull request November 18, 2024 17:53
Status Failure
Total duration 1m 45s
Artifacts

ts_test.yml

on: pull_request
List packages
4s
List packages
List examples
4s
List examples
Matrix: Build and test
Matrix: check_packages
Matrix: check_and_build_examples
Fit to window
Zoom out
Zoom in

Annotations

11 errors
test/react-hooks.test.tsx > useShape > should sync a shape: packages/react-hooks/test/react-hooks.test.tsx#L63
AssertionError: expected [] to deeply equal [ { …(2) } ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received - Array [ - Object { - "id": "e014e422-40f0-4665-b2c8-646924e64b8a", - "title": "test row", - }, - ] + Array [] ❯ test/react-hooks.test.tsx:63:35 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should re-sync a shape after an interrupt: packages/react-hooks/test/react-hooks.test.tsx#L96
AssertionError: expected [] to deeply equal [ { …(2) } ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> <div /> </body> </html> - Expected + Received - Array [ - Object { - "id": "37c03ae2-3b3b-4c19-b4fa-bc0e8d3d4cba", - "title": "test row", - }, - ] + Array [] ❯ test/react-hooks.test.tsx:96:35 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should expose isLoading status: packages/react-hooks/test/react-hooks.test.tsx#L114
AssertionError: expected true to be false // Object.is equality Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received - false + true ❯ test/react-hooks.test.tsx:114:58 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should expose time at which we last synced: packages/react-hooks/test/react-hooks.test.tsx#L136
AssertionError: expected undefined to be defined Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> ❯ test/react-hooks.test.tsx:136:61 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should keep the state value in sync: packages/react-hooks/test/react-hooks.test.tsx#L157
AssertionError: expected [] to not deeply equal [] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> Compared values have no visual difference. ❯ test/react-hooks.test.tsx:157:57 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should let you change the shape definition (and clear the internal cache between): packages/react-hooks/test/react-hooks.test.tsx#L192
AssertionError: expected [] to deeply equal [ { …(2) } ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received - Array [ - Object { - "id": "743f3965-c50c-4f2c-9061-3a8b60b63394", - "title": "test row", - }, - ] + Array [] ❯ test/react-hooks.test.tsx:192:35 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should allow use of the "selector" api from useSyncExternalStoreWithSelector: packages/react-hooks/test/react-hooks.test.tsx#L230
AssertionError: expected [] to deeply equal [ { …(2) } ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received - Array [ - Object { - "id": "2b17a5e4-7300-4598-926d-9ddda9b28b75", - "title": "test row", - }, - ] + Array [] ❯ test/react-hooks.test.tsx:230:35 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should correctly reapply the selector to the data if it changes: packages/react-hooks/test/react-hooks.test.tsx#L275
AssertionError: expected [] to deeply equal [ { …(2) } ] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> - Expected + Received - Array [ - Object { - "id": "b5c1095f-5ea7-4577-a86e-83d9a139c7e2", - "title": "test row 2", - }, - ] + Array [] ❯ test/react-hooks.test.tsx:275:35 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
test/react-hooks.test.tsx > useShape > should unmount cleanly: packages/react-hooks/test/react-hooks.test.tsx#L301
AssertionError: expected [] to not deeply equal [] Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html> Compared values have no visual difference. ❯ test/react-hooks.test.tsx:301:57 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
Build and test (packages/react-hooks)
Process completed with exit code 1.
Build and test (packages/typescript-client)
Process completed with exit code 1.