Skip to content

Commit 3309184

Browse files
authored
Merge pull request #418 from penge/node-20
Use node 20, npm 10
2 parents a22638f + 18db185 commit 3309184

13 files changed

+3317
-4334
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
node_modules/*
22
dist/*
3+
register.js
34
jest.config.ts
5+
jest.setup.ts
46
build.ts
57
set-client-id.ts

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: npm ci
1717
- run: npm run lint
1818
- run: npm run test

jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const config: Config.InitialOptions = {
66
testMatch: [
77
"**/__tests__/**/*.test.ts?(x)"
88
],
9-
moduleDirectories: ["node_modules", "src"]
9+
moduleDirectories: ["node_modules", "src"],
10+
setupFiles: ["<rootDir>/jest.setup.ts"]
1011
};
1112

1213
export default config;

jest.setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TextEncoder, TextDecoder } from "util";
2+
3+
Object.assign(global, { TextEncoder, TextDecoder });

0 commit comments

Comments
 (0)