fix: always throw errors & always use named Error classes #1311
ts_test.yml
on: pull_request
List packages
4s
List examples
6s
Matrix: Build and test
Matrix: check_packages
Matrix: check_and_build_examples
Annotations
10 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": "e59e4e3f-21ff-4260-8453-b656fbb129af",
- "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": "6b3bf7be-73c9-41b3-bf97-bf90cad912b4",
- "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": "ed1d675b-0311-480d-b52a-2da2cdbe29d5",
- "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": "cfeb4d07-b67e-46af-b375-9b279d1f803d",
- "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": "88ba1a31-598a-4de3-95ab-fa754a524199",
- "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.
|