fix: wallet reset issue #244
Annotations
10 errors and 10 warnings
Run Jest Tests
fuels-wallet#test: command (/home/runner/actions-runner/_work/fuels-wallet/fuels-wallet/packages/app) pnpm run test --ci --testLocationInResults --json --coverage exited (1)
|
Run Jest Tests:
packages/app/src/systems/Settings/__test__/testQueries.ts#L25
Found multiple elements with the text: /Connection removed/i
Here are the matching elements:
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
>
<div
class="go4109123758"
style="left: 0px; right: 0px; display: flex; position: absolute; transition: all 230ms cubic-bezier(.21,1.02,.73,1); transform: translateY(0px); bottom: 0px; justify-content: flex-end;"
>
<div
class="go2072408551"
style="opacity: 0; padding: 0px; box-shadow: none; border-radius: 0; background: transparent;"
>
<div
class="fuel_Toast fuel-gMTbHp"
data-state="opened"
>
<div
class="go685806154"
>
<div
class="go1858758034"
/>
<div
class="go1579819456"
>
<div
class="go2344853693"
/>
</div>
</div>
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
<button
aria-label="Close"
aria-pressed="false"
class="fuel_Button fuel_Button__size-xs__fLsHLj fuel_Button__justIcon-true__ktfZrN fuel_Button__cv__dehvsx fuel_Button__cv__efCiES fuel_Button__cv__jyoojO fuel_IconButton fuel-hCnnEQ focused"
intent="base"
role="button"
type="button"
>
<i
aria-label="Icon X"
class="fuel_Icon fuel_Icon-idhzjXW-css"
role="img"
>
<svg
aria-hidden="true"
class="fuel_Icon fuel_Icon-X"
fill="transparent"
focusable="false"
height="20"
stroke-width="1.5"
width="20"
>
<use
xlink:href="[object Object]#X"
/>
</svg>
<span
style="position: absolute; border: 0px; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; word-wrap: normal;"
>
Icon X
</span>
</i>
</button>
</div>
</div>
</div>
<div
class=""
style="left: 0px; right: 0px; display: flex; position: absolute; transition: all 230ms cubic-bezier(.21,1.02,.73,1); transform: translateY(0px); bottom: 0px; justify-content: flex-end;"
>
<div
class="go2072408551"
style="opacity: 0; padding: 0px; box-shadow: none; border-radius: 0; background: transparent;"
>
<div
class="fuel_Toast fuel-gMTbHp"
data-state="closed"
>
<div
class="go685806154"
>
<div
class="go1858758034"
/>
<div
class="go1579819456"
>
<div
class="go2344853693"
/>
</div>
</div>
<div
aria-live="polite"
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L28
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
ReferenceError: chrome is not defined
at ChromeStorageTable.getAll (src/systems/Core/services/chromeStorage.ts:28:22)
at Function.recoverWallet (src/systems/Account/services/account.ts:212:57)
at fetch (src/systems/Account/machines/accountsMachine.tsx:223:32)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:269:63)
at Interpreter.exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1026:10)
at Interpreter.execute (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:387:14)
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:415:12)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:675:13
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.initialize (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:32:12)
at Interpreter.start (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:674:20)
at Interpreter.spawnMachine (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1113:8)
at Interpreter.spawn (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1067:19)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:289:21)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:627:24)
at Array.map (<anonymous>)
at Object.resolveActions (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:652:52)
at StateNode.resolveTransition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:917:36)
at StateNode.transition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:840:17)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:956:28
at Object.provide (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/serviceScope.js:12:16)
at Interpreter._nextState (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:955:34)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:108:31
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1110:13
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:498:11)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:110:15
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at _a.id (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1139:15)
at logError (src/systems/Core/machines/fetchMachine.ts:117:21)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:171:18)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_module
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at IndexedDBStorage.getItem (src/systems/Account/utils/storage.tsx:7:46)
at _WalletManager.loadState (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:249:37)
at async _WalletManager.unlock (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:213:7)
at async VaultServer.unlock (src/systems/Vault/services/VaultServer.ts:129:5)
at async VaultClient.clientVault.unlock (src/systems/Vault/__mocks__/mockUnlock.ts:15:5)
at async Function.create (src/systems/SignUp/services/signup.ts:32:5)
at async mockVault (src/systems/Core/__tests__/utils/mockVault.ts:14:19)
at async Object.<anonymous> (src/systems/DApp/machines/messageRequestMachine.test.ts:14:17)
|
Run Jest Tests:
packages/app/src/systems/DApp/machines/messageRequestMachine.test.ts#L22
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/DApp/machines/messageRequestMachine.test.ts:22:13)
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at IndexedDBStorage.getItem (src/systems/Account/utils/storage.tsx:7:46)
at _WalletManager.loadState (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:249:37)
at async _WalletManager.unlock (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:213:7)
at async VaultServer.unlock (src/systems/Vault/services/VaultServer.ts:129:5)
at async VaultClient.clientVault.unlock (src/systems/Vault/__mocks__/mockUnlock.ts:15:5)
at async Function.create (src/systems/SignUp/services/signup.ts:32:5)
at async mockVault (src/systems/Core/__tests__/utils/mockVault.ts:14:19)
at async Object.<anonymous> (src/systems/DApp/machines/messageRequestMachine.test.ts:14:17)
|
Run Jest Tests:
packages/app/src/systems/DApp/machines/messageRequestMachine.test.ts#L22
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/DApp/machines/messageRequestMachine.test.ts:22:13)
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at ChromeStorageTable.set (src/systems/Core/services/chromeStorage.ts:35:40)
at src/systems/Core/utils/database.ts:76:42
|
Run Jest Tests:
packages/app/src/systems/Account/machines/exportAccountMachine.test.tsx#L24
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/Account/machines/exportAccountMachine.test.tsx:24:13)
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at ChromeStorageTable.set (src/systems/Core/services/chromeStorage.ts:35:40)
at src/systems/Core/utils/database.ts:76:42
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L28
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
ReferenceError: chrome is not defined
at ChromeStorageTable.getAll (src/systems/Core/services/chromeStorage.ts:28:22)
at Function.recoverWallet (src/systems/Account/services/account.ts:212:57)
at fetch (src/systems/Account/machines/accountsMachine.tsx:223:32)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:269:63)
at Interpreter.exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1026:10)
at Interpreter.execute (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:387:14)
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:415:12)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:675:13
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.initialize (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:32:12)
at Interpreter.start (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:674:20)
at Interpreter.spawnMachine (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1113:8)
at Interpreter.spawn (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1067:19)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:289:21)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:627:24)
at Array.map (<anonymous>)
at Object.resolveActions (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:652:52)
at StateNode.resolveTransition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:917:36)
at StateNode.transition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:840:17)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:956:28
at Object.provide (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/serviceScope.js:12:16)
at Interpreter._nextState (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:955:34)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:108:31
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1110:13
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:498:11)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:110:15
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at _a.id (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1139:15)
at logError (src/systems/Core/machines/fetchMachine.ts:117:21)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:171:18)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_module
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L28
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
ReferenceError: chrome is not defined
at ChromeStorageTable.getAll (src/systems/Core/services/chromeStorage.ts:28:22)
at Function.recoverWallet (src/systems/Account/services/account.ts:212:57)
at fetch (src/systems/Account/machines/accountsMachine.tsx:223:32)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:269:63)
at Interpreter.exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1026:10)
at Interpreter.execute (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:387:14)
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:415:12)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:675:13
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.initialize (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:32:12)
at Interpreter.start (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:674:20)
at Interpreter.spawnMachine (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1113:8)
at Interpreter.spawn (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1067:19)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:289:21)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:627:24)
at Array.map (<anonymous>)
at Object.resolveActions (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:652:52)
at StateNode.resolveTransition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:917:36)
at StateNode.transition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:840:17)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:956:28
at Object.provide (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/serviceScope.js:12:16)
at Interpreter._nextState (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:955:34)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:108:31
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1110:13
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:498:11)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:110:15
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at _a.id (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1139:15)
at logError (src/systems/Core/machines/fetchMachine.ts:117:21)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:171:18)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_module
|
Run Jest Tests:
packages/app/src/systems/Settings/__test__/testQueries.ts#L25
Found multiple elements with the text: /Connection removed/i
Here are the matching elements:
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
Ignored nodes: comments, script, style
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
>
<div
class="go4109123758"
style="left: 0px; right: 0px; display: flex; position: absolute; transition: all 230ms cubic-bezier(.21,1.02,.73,1); transform: translateY(0px); bottom: 0px; justify-content: flex-end;"
>
<div
class="go2072408551"
style="opacity: 0; padding: 0px; box-shadow: none; border-radius: 0; background: transparent;"
>
<div
class="fuel_Toast fuel-gMTbHp"
data-state="opened"
>
<div
class="go685806154"
>
<div
class="go1858758034"
/>
<div
class="go1579819456"
>
<div
class="go2344853693"
/>
</div>
</div>
<div
aria-live="polite"
class="go3958317564"
role="status"
>
Connection removed successfully
</div>
<button
aria-label="Close"
aria-pressed="false"
class="fuel_Button fuel_Button__size-xs__fLsHLj fuel_Button__justIcon-true__ktfZrN fuel_Button__cv__dehvsx fuel_Button__cv__efCiES fuel_Button__cv__jyoojO fuel_IconButton fuel-hCnnEQ focused"
intent="base"
role="button"
type="button"
>
<i
aria-label="Icon X"
class="fuel_Icon fuel_Icon-idhzjXW-css"
role="img"
>
<svg
aria-hidden="true"
class="fuel_Icon fuel_Icon-X"
fill="transparent"
focusable="false"
height="20"
stroke-width="1.5"
width="20"
>
<use
xlink:href="[object Object]#X"
/>
</svg>
<span
style="position: absolute; border: 0px; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; word-wrap: normal;"
>
Icon X
</span>
</i>
</button>
</div>
</div>
</div>
<div
class="go4109123758"
style="left: 0px; right: 0px; display: flex; position: absolute; transition: all 230ms cubic-bezier(.21,1.02,.73,1); transform: translateY(0px); bottom: 0px; justify-content: flex-end;"
>
<div
class="go2072408551"
style="opacity: 0; padding: 0px; box-shadow: none; border-radius: 0; background: transparent;"
>
<div
class="fuel_Toast fuel-gMTbHp"
data-state="opened"
>
<div
class="go685806154"
>
<div
class="go1858758034"
/>
<div
class="go1579819456"
>
<div
class="go2344853693"
/>
</div>
</div>
<div
aria-li
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L28
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
ReferenceError: chrome is not defined
at ChromeStorageTable.getAll (src/systems/Core/services/chromeStorage.ts:28:22)
at Function.recoverWallet (src/systems/Account/services/account.ts:212:57)
at fetch (src/systems/Account/machines/accountsMachine.tsx:223:32)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:269:63)
at Interpreter.exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1026:10)
at Interpreter.execute (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:387:14)
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:415:12)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:675:13
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.initialize (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:32:12)
at Interpreter.start (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:674:20)
at Interpreter.spawnMachine (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1113:8)
at Interpreter.spawn (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1067:19)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:289:21)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:627:24)
at Array.map (<anonymous>)
at Object.resolveActions (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:652:52)
at StateNode.resolveTransition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:917:36)
at StateNode.transition (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/StateNode.js:840:17)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:956:28
at Object.provide (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/serviceScope.js:12:16)
at Interpreter._nextState (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:955:34)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:108:31
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1110:13
at Interpreter.update (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:498:11)
at ../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:110:15
at Scheduler.process (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:69:7)
at Scheduler.schedule (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/scheduler.js:48:10)
at Interpreter.send (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:104:23)
at _a.id (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:1139:15)
at logError (src/systems/Core/machines/fetchMachine.ts:117:21)
at Interpreter._exec (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/interpreter.js:171:18)
at handleAction (../../node_modules/.pnpm/[email protected]/node_modules/xstate/lib/actions.js:596:11)
at processBlock (../../node_modules/.pnpm/[email protected]/node_module
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at IndexedDBStorage.getItem (src/systems/Account/utils/storage.tsx:7:46)
at _WalletManager.loadState (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:249:37)
at async _WalletManager.unlock (../../node_modules/.pnpm/@[email protected]/node_modules/@fuel-ts/account/src/wallet-manager/wallet-manager.ts:213:7)
at async VaultServer.unlock (src/systems/Vault/services/VaultServer.ts:129:5)
at async VaultClient.clientVault.unlock (src/systems/Vault/__mocks__/mockUnlock.ts:15:5)
at async Function.create (src/systems/SignUp/services/signup.ts:32:5)
at async mockVault (src/systems/Core/__tests__/utils/mockVault.ts:14:19)
at async Object.<anonymous> (src/systems/Account/machines/exportAccountMachine.test.tsx:14:41)
|
Run Jest Tests:
packages/app/src/systems/Account/machines/exportAccountMachine.test.tsx#L24
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/Account/machines/exportAccountMachine.test.tsx:24:13)
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at ChromeStorageTable.set (src/systems/Core/services/chromeStorage.ts:35:40)
at src/systems/Core/utils/database.ts:76:42
|
Run Jest Tests:
packages/app/src/systems/Account/machines/exportAccountMachine.test.tsx#L24
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/Account/machines/exportAccountMachine.test.tsx:24:13)
|
Run Jest Tests:
packages/app/src/systems/Core/services/chromeStorage.ts#L7
ReferenceError: chrome is not defined
at ChromeStorageTable.get (src/systems/Core/services/chromeStorage.ts:7:22)
at ChromeStorageTable.set (src/systems/Core/services/chromeStorage.ts:35:40)
at src/systems/Core/utils/database.ts:76:42
|
Run Jest Tests:
packages/app/src/systems/Account/machines/exportAccountMachine.test.tsx#L24
TypeError: Cannot read properties of undefined (reading 'stop')
at Object.<anonymous> (src/systems/Account/machines/exportAccountMachine.test.tsx:24:13)
|
Loading