Skip to content

Commit

Permalink
Upgrade nodejs (18.17.1 -> 18.19.0)
Browse files Browse the repository at this point in the history
The workaround to fix `structuredClone` type error  in jest.config.js
was found in zloirock/core-js#1281 and came
from elastic/kibana@a5dbf26

Change-Id: I18163a5b7fd0a25cc3d65b69d25499c32e8614ca
GitOrigin-RevId: 19b1612b23f2dfb75f0fb6b8c3ab9a7323609bd1
  • Loading branch information
tmadeira authored and Copybara committed Jan 9, 2024
1 parent b1190ac commit 226d159
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 18.17.1
nodejs 18.19.0
python 3.10.13
2 changes: 1 addition & 1 deletion platform/wab/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Need newer alpine for bubblewrap to work
FROM node:18.17-alpine3.18
FROM node:18.19-alpine3.18

# System setup
RUN apk add --no-cache bash=5.2.15-r5 make=4.4.1-r1 bubblewrap=0.8.0-r1 git=2.40.1-r0
Expand Down
6 changes: 6 additions & 0 deletions platform/wab/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ const config: Config = {
process.env.CI ? ["github-actions", { silent: false }] : "default",
"summary",
],
// Workaround to "TypeError: Cannot assign to read only property
// 'structuredClone' of object '[object global]'", which started when
// upgrading node from 18.17.1 to 18.19.0.
globals: {
structuredClone: {},
},
};

export default config;

0 comments on commit 226d159

Please sign in to comment.