Skip to content

Commit 250d593

Browse files
committed
feat: primer v37 upgrade
Signed-off-by: Adam Setch <[email protected]>
1 parent ee78ce7 commit 250d593

File tree

47 files changed

+3394
-7370
lines changed

Some content is hidden

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

47 files changed

+3394
-7370
lines changed

jest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const config: Config = {
1010
// Force CommonJS build for http adapter to be available.
1111
// via https://github.com/axios/axios/issues/5101#issuecomment-1276572468
1212
'^axios$': require.resolve('axios'),
13+
14+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
1315
},
1416
modulePathIgnorePatterns: ['<rootDir>/build', '<rootDir>/node_modules'],
1517
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@primer/css": "22.0.2",
8181
"@primer/octicons-react": "19.18.0",
8282
"@primer/primitives": "11.1.0",
83-
"@primer/react": "36.27.0",
83+
"@primer/react": "37.31.0",
8484
"@tailwindcss/postcss": "4.1.13",
8585
"@testing-library/jest-dom": "6.8.0",
8686
"@testing-library/react": "16.3.0",
@@ -91,6 +91,7 @@
9191
"@types/react-dom": "19.1.9",
9292
"@types/react-router-dom": "5.3.3",
9393
"@types/semver": "7.7.1",
94+
"identity-obj-proxy": "3.0.0",
9495
"axios": "1.11.0",
9596
"clsx": "2.1.1",
9697
"concurrently": "9.2.1",

pnpm-lock.yaml

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

src/renderer/__helpers__/jest.setup.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,17 @@ global.CSS = {
6969
};
7070

7171
window.HTMLMediaElement.prototype.play = jest.fn();
72+
73+
// JSDOM doesn't implement matchMedia; needed for Primer media queries (useMedia hook)
74+
if (!window.matchMedia) {
75+
window.matchMedia = (query: string): MediaQueryList => ({
76+
matches: false,
77+
media: query,
78+
onchange: null,
79+
addListener: () => {}, // deprecated
80+
removeListener: () => {}, // deprecated
81+
addEventListener: () => {},
82+
removeEventListener: () => {},
83+
dispatchEvent: () => false,
84+
});
85+
}

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

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

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

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

0 commit comments

Comments
 (0)