Skip to content

Commit 4287cf2

Browse files
authored
test(vitest): use deps.optimizer.client (#2757)
* test(vitest): use deps.optimizer.client Signed-off-by: Adam Setch <adam.setch@outlook.com> * auth-splits Signed-off-by: Adam Setch <adam.setch@outlook.com> --------- Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 04b2e43 commit 4287cf2

65 files changed

Lines changed: 11677 additions & 12864 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/renderer/__helpers__/test-utils.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { render } from '@testing-library/react';
22
import { type ReactElement, type ReactNode, useMemo } from 'react';
33
import { MemoryRouter } from 'react-router-dom';
44

5-
import { BaseStyles, ThemeProvider } from '@primer/react';
6-
75
import { mockAuth, mockSettings } from '../__mocks__/state-mocks';
86

97
import { AppContext, type AppContextState } from '../context/App';
@@ -86,13 +84,9 @@ function AppContextProvider({
8684

8785
return (
8886
<MemoryRouter initialEntries={initialEntries}>
89-
<ThemeProvider>
90-
<BaseStyles>
91-
<AppContext.Provider value={defaultValue as AppContextState}>
92-
{children}
93-
</AppContext.Provider>
94-
</BaseStyles>
95-
</ThemeProvider>
87+
<AppContext.Provider value={defaultValue as AppContextState}>
88+
{children}
89+
</AppContext.Provider>
9690
</MemoryRouter>
9791
);
9892
}

src/renderer/__mocks__/account-mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
Token,
99
} from '../types';
1010

11-
import { getRecommendedScopeNames } from '../utils/auth/utils';
11+
import { getRecommendedScopeNames } from '../utils/auth/scopes';
1212
import { mockGitifyUser } from './user-mocks';
1313

1414
export const mockGitHubAppAccount: Account = {

src/renderer/components/__snapshots__/AllRead.test.tsx.snap

Lines changed: 58 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)