Release v1.14.0 #6
GitHub Actions / jest-github-action
failed
Jul 19, 2023 in 0s
Jest tests failed
Failed tests: 2/832. Failed suites: 2/116.
Details
● useChainId hook › should return the default chainId if no query params
expect(received).toBe(expected) // Object.is equality
Expected: "5"
Received: "9001"
85 | it('should return the default chainId if no query params', () => {
86 | const { result } = renderHook(() => useChainId())
> 87 | expect(result.current).toBe('5')
| ^
88 | })
89 |
90 | it('should return the chainId based on the chain query', () => {
at Object.toBe (src/hooks/__tests__/useChainId.test.ts:87:28)
● useChainId hook › should return the last used chain id if no chain in the URL and the connect wallet chain id is not present in the chain configs
expect(received).toBe(expected) // Object.is equality
Expected: "5"
Received: "9001"
147 |
148 | const { result } = renderHook(() => useChainId())
> 149 | expect(result.current).toBe('5')
| ^
150 | })
151 |
152 | it('should return the last used chain id if no wallet is connected and there is no chain in the URL', () => {
at Object.toBe (src/hooks/__tests__/useChainId.test.ts:149:28)
Annotations
Check failure on line 85 in src/hooks/__tests__/useChainId.test.ts
github-actions / jest-github-action
useChainId hook > should return the default chainId if no query params
Error: expect(received).toBe(expected) // Object.is equality
Expected: "5"
Received: "9001"
at Object.toBe (/home/runner/work/safe-web-core/safe-web-core/src/hooks/__tests__/useChainId.test.ts:87:28)
at Promise.then.completed (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:333:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:259:10)
at _callCircusTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:277:40)
at _runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:209:3)
at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:97:9)
at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:91:9)
at run (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:31:3)
at runAndTransformResultsToJestFormat (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)
at jestAdapter (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:92:19)
at runTestInternal (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:411:16)
at runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:499:34)
Check failure on line 132 in src/hooks/__tests__/useChainId.test.ts
github-actions / jest-github-action
useChainId hook > should return the last used chain id if no chain in the URL and the connect wallet chain id is not present in the chain configs
Error: expect(received).toBe(expected) // Object.is equality
Expected: "5"
Received: "9001"
at Object.toBe (/home/runner/work/safe-web-core/safe-web-core/src/hooks/__tests__/useChainId.test.ts:149:28)
at Promise.then.completed (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:333:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:259:10)
at _callCircusTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:277:40)
at _runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:209:3)
at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:97:9)
at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:91:9)
at run (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:31:3)
at runAndTransformResultsToJestFormat (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)
at jestAdapter (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:92:19)
at runTestInternal (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:411:16)
at runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:499:34)
Loading