Skip to content

Commit f61052e

Browse files
Update to node 20.x to unblock some styling work (#1087)
* Update nodejs.yml to include node 22 and 24 Update nodejs.yml to include node 22 and 24 * Stuff * Cleanup non-workflow files * Update nodejs.yml Just do 20 to unblock styling work * Polyfill ReadableStream * Remove fetch
1 parent fdcc0a7 commit f61052e

File tree

6 files changed

+5717
-4138
lines changed

6 files changed

+5717
-4138
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
node-version: [16.x, 18.x, 20.x]
32+
node-version: [20.x]
3333

3434
steps:
3535
- uses: actions/checkout@v3
@@ -50,7 +50,7 @@ jobs:
5050

5151
strategy:
5252
matrix:
53-
node-version: [18.x, 20.x]
53+
node-version: [20.x]
5454

5555
steps:
5656
- uses: actions/checkout@v3
@@ -72,7 +72,7 @@ jobs:
7272

7373
strategy:
7474
matrix:
75-
node-version: [16.x]
75+
node-version: [20.x]
7676

7777
steps:
7878
- uses: actions/checkout@v3

custom-jest-environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
// Inspired by https://github.com/facebook/jest/issues/7780#issuecomment-615890410
1818
// This file is used in `npm test` to override a few globals on top of jsdom.
1919

20+
const { ReadableStream } = require('web-streams-polyfill/dist/polyfill.js');
21+
2022
const JsdomEnvironment = require('jest-environment-jsdom');
2123
const dns = require('dns');
2224

@@ -38,6 +40,7 @@ class EmulatorUiTestEnvironment extends JsdomEnvironment {
3840
clearImmediate: clearImmediate,
3941
setInterval: setInterval,
4042
setTimeout: setTimeout,
43+
ReadableStream: ReadableStream,
4144
}),
4245
})
4346
);

0 commit comments

Comments
 (0)