Skip to content

refactor: tanstack-query for api state, zustand for accounts and setting state #2673

refactor: tanstack-query for api state, zustand for accounts and setting state

refactor: tanstack-query for api state, zustand for accounts and setting state #2673

Triggered via pull request February 21, 2026 21:09
Status Failure
Total duration 3m 3s
Artifacts

ci.yml

on: pull_request
Prepare CI
3s
Prepare CI
Lint App  /  biomejs
28s
Lint App / biomejs
Tests  /  SonarQube Cloud Analysis
0s
Tests / SonarQube Cloud Analysis
Matrix: Build / build
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

10 errors
[happy-dom [preload, renderer]] src/renderer/routes/Notifications.test.tsx > renderer/routes/Notifications.tsx > should render itself & its children (all read notifications): src/renderer/routes/Notifications.test.tsx#L32
Error: Snapshot `renderer/routes/Notifications.tsx > should render itself & its children (all read notifications) 1` mismatched - Expected + Received @@ -7,10 +7,10 @@ <div class="prc-src-BaseStyles-aopSS" data-portal-root="true" > <p> - AllRead + Oops </p> </div> </div> </div> ❯ src/renderer/routes/Notifications.test.tsx:32:28
[happy-dom [preload, renderer]] src/renderer/routes/Notifications.test.tsx > renderer/routes/Notifications.tsx > should render itself & its children (with notifications): src/renderer/routes/Notifications.test.tsx#L27
Error: Snapshot `renderer/routes/Notifications.tsx > should render itself & its children (with notifications) 1` mismatched - Expected + Received @@ -7,10 +7,10 @@ <div class="prc-src-BaseStyles-aopSS" data-portal-root="true" > <p> - AllRead + Oops </p> </div> </div> </div> ❯ src/renderer/routes/Notifications.test.tsx:27:28
[happy-dom [preload, renderer]] src/renderer/routes/Accounts.test.tsx > renderer/routes/Accounts.tsx > Add new accounts > should show login with personal access token: src/renderer/routes/Accounts.test.tsx#L206
TestingLibraryElementError: Unable to find an element by: [data-testid="account-add-new"] Ignored nodes: comments, script, style <body /> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ getByTestId node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/renderer/routes/Accounts.test.tsx:206:36
[happy-dom [preload, renderer]] src/renderer/routes/Accounts.test.tsx > renderer/routes/Accounts.tsx > Add new accounts > should show login with github app: src/renderer/routes/Accounts.test.tsx#L196
TestingLibraryElementError: Unable to find an element by: [data-testid="account-add-new"] Ignored nodes: comments, script, style <body /> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ getByTestId node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/renderer/routes/Accounts.test.tsx:196:36
[happy-dom [preload, renderer]] src/renderer/routes/Accounts.test.tsx > renderer/routes/Accounts.tsx > Account interactions > open profile in external browser: src/renderer/routes/Accounts.test.tsx#L75
AssertionError: expected "openAccountProfile" to be called with arguments: [ { platform: 'GitHub Cloud', …(5) } ] Received: 1st openAccountProfile call: @@ -9,7 +9,8 @@ "avatar": "https://avatars.githubusercontent.com/u/583231?v=4", "id": "123456789", "login": "octocat", "name": "Mona Lisa Octocat", }, + "version": "latest", }, ] Number of calls: 1 ❯ src/renderer/routes/Accounts.test.tsx:75:37
[happy-dom [preload, renderer]] src/renderer/context/App.test.tsx > renderer/context/App.tsx > notification methods > should call unsubscribeNotification: src/renderer/context/App.test.tsx#L129
AssertionError: expected "setTrayIconColorAndTitle" to be called 1 times, but got 2 times ❯ src/renderer/context/App.test.tsx:129:43
[happy-dom [preload, renderer]] src/renderer/context/App.test.tsx > renderer/context/App.tsx > notification methods > should call markNotificationsAsDone: src/renderer/context/App.test.tsx#L115
AssertionError: expected "setTrayIconColorAndTitle" to be called 1 times, but got 2 times ❯ src/renderer/context/App.test.tsx:115:43
[happy-dom [preload, renderer]] src/renderer/context/App.test.tsx > renderer/context/App.tsx > notification methods > should call markNotificationsAsRead: src/renderer/context/App.test.tsx#L101
AssertionError: expected "setTrayIconColorAndTitle" to be called 1 times, but got 2 times ❯ src/renderer/context/App.test.tsx:101:43
[happy-dom [preload, renderer]] src/renderer/components/Sidebar.test.tsx > renderer/components/Sidebar.tsx > Focused mode toggle > toggles participating when clicked: src/renderer/components/Sidebar.test.tsx#L157
AssertionError: expected "vi.fn()" to be called 1 times, but got 0 times ❯ src/renderer/components/Sidebar.test.tsx:157:33
[happy-dom [preload, renderer]] src/preload/index.test.ts > preload/index > tray.updateColor sends correct events: src/preload/index.test.ts#L91
AssertionError: expected 1st "vi.fn()" call to have been called with [ 'gitify:update-icon-color', -1 ] - Expected + Received [ "gitify:update-icon-color", - -1, + { + "isOnline": true, + "notificationsCount": -1, + }, ] ❯ src/preload/index.test.ts:91:31