diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2e369f9441f312..dd83bed3cc0882 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -44,7 +44,7 @@ defaults: &defaults
AWS_REGION_ARTIFACTS: eu-central-1
working_directory: /tmp/material-ui
docker:
- - image: cimg/node:14.21
+ - image: cimg/node:18.16
# CircleCI has disabled the cache across forks for security reasons.
# Following their official statement, it was a quick solution, they
@@ -672,7 +672,7 @@ jobs:
DANGER_COMMAND: prepareBundleSizeReport
- run:
name: build @mui packages
- command: yarn lerna run --ignore @mui/icons-material --parallel --scope "@mui/*" build
+ command: yarn lerna run --ignore @mui/icons-material --concurrency 8 --scope "@mui/*" build
- run:
name: create @mui/material canary distributable
command: |
diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json
index 63f9d967754b4d..5afb5c27d36021 100644
--- a/.codesandbox/ci.json
+++ b/.codesandbox/ci.json
@@ -1,7 +1,7 @@
{
"buildCommand": "build:codesandbox",
"installCommand": "install:codesandbox",
- "node": "14",
+ "node": "18",
"packages": [
"packages/mui-material",
"packages/mui-codemod",
diff --git a/netlify.toml b/netlify.toml
index 74c7789a51aae7..1be049827eae4b 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -8,7 +8,7 @@
command = "yarn docs:build && yarn docs:export"
[build.environment]
- NODE_VERSION = "14"
+ NODE_VERSION = "18"
# Not using `playwright` when building docs.
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"
diff --git a/packages/mui-material-next/src/Tabs/Tabs.test.js b/packages/mui-material-next/src/Tabs/Tabs.test.js
index 9d17ac411e1107..3c894e825c13e1 100644
--- a/packages/mui-material-next/src/Tabs/Tabs.test.js
+++ b/packages/mui-material-next/src/Tabs/Tabs.test.js
@@ -338,11 +338,21 @@ describe('', () => {
nodeEnv = process.env.NODE_ENV;
// We can't use a regular assignment, because it causes a syntax error in Karma
- Object.defineProperty(process.env, 'NODE_ENV', { value: 'development' });
+ Object.defineProperty(process.env, 'NODE_ENV', {
+ value: 'development',
+ configurable: true,
+ writable: true,
+ enumerable: true,
+ });
});
after(() => {
- Object.defineProperty(process.env, 'NODE_ENV', { value: nodeEnv });
+ Object.defineProperty(process.env, 'NODE_ENV', {
+ value: nodeEnv,
+ configurable: true,
+ writable: true,
+ enumerable: true,
+ });
});
it('should warn if a Tab has display: none', () => {
diff --git a/packages/mui-material/src/Tabs/Tabs.test.js b/packages/mui-material/src/Tabs/Tabs.test.js
index afeffea0d3e229..16ecb2c42c39c4 100644
--- a/packages/mui-material/src/Tabs/Tabs.test.js
+++ b/packages/mui-material/src/Tabs/Tabs.test.js
@@ -375,11 +375,21 @@ describe('', () => {
nodeEnv = process.env.NODE_ENV;
// We can't use a regular assignment, because it causes a syntax error in Karma
- Object.defineProperty(process.env, 'NODE_ENV', { value: 'development' });
+ Object.defineProperty(process.env, 'NODE_ENV', {
+ value: 'development',
+ configurable: true,
+ writable: true,
+ enumerable: true,
+ });
});
after(() => {
- Object.defineProperty(process.env, 'NODE_ENV', { value: nodeEnv });
+ Object.defineProperty(process.env, 'NODE_ENV', {
+ value: nodeEnv,
+ configurable: true,
+ writable: true,
+ enumerable: true,
+ });
});
it('should warn if a `Tab` has display: none', function test() {