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() {