Skip to content

Commit dde91e2

Browse files
chore(deps): update typescript to v5.9.2 (#2123)
* chore(deps): update typescript to v5.9.2 * fix setup Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam Setch <[email protected]>
1 parent ef281c6 commit dde91e2

File tree

3 files changed

+46
-42
lines changed

3 files changed

+46
-42
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"ts-jest": "29.4.1",
122122
"ts-loader": "9.5.2",
123123
"ts-node": "10.9.2",
124-
"typescript": "5.8.3",
124+
"typescript": "5.9.2",
125125
"webpack": "5.101.2",
126126
"webpack-cli": "6.0.1",
127127
"webpack-merge": "6.0.1"

pnpm-lock.yaml

Lines changed: 33 additions & 33 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: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ import '@testing-library/jest-dom';
22

33
import { TextDecoder, TextEncoder } from 'node:util';
44

5-
if (!global.TextEncoder || !global.TextDecoder) {
6-
/**
7-
* Prevent the following errors with jest:
8-
* - ReferenceError: TextEncoder is not defined
9-
* - ReferenceError: TextDecoder is not defined
10-
*/
11-
global.TextEncoder = TextEncoder;
12-
global.TextDecoder = TextDecoder;
5+
/**
6+
* Prevent the following errors with jest:
7+
* - ReferenceError: TextEncoder is not defined
8+
* - ReferenceError: TextDecoder is not defined
9+
*/
10+
if (!('TextEncoder' in globalThis)) {
11+
(globalThis as unknown as { TextEncoder: typeof TextEncoder }).TextEncoder =
12+
TextEncoder;
13+
}
14+
if (!('TextDecoder' in globalThis)) {
15+
(globalThis as unknown as { TextDecoder: typeof TextDecoder }).TextDecoder =
16+
TextDecoder;
1317
}
1418

1519
// Mock OAuth client ID and secret

0 commit comments

Comments
 (0)