Skip to content

Commit

Permalink
Revert envinfo test change
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Dec 6, 2024
1 parent 5479511 commit 0ebf220
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/mui-envinfo/envinfo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,7 @@ describe('@mui/envinfo', () => {
// Other libraries
expect(envinfo).to.have.nested.property('npmPackages.react');
expect(envinfo).to.have.nested.property('npmPackages.react-dom');

// TODO: remove this check once React 19 stable types are released
// React 19 RC requires setting `@types/react' to `npm:[email protected]`
// See https://react.dev/blog/2024/04/25/react-19-upgrade-guide#installing
if (process.env.REACT_VERSION === 'next') {
expect(envinfo).to.have.nested.property('npmPackages.@types/react');
} else {
expect(envinfo).to.have.nested.property('npmPackages.types-react');
}

expect(envinfo).to.have.nested.property('npmPackages.@types/react');
expect(envinfo).to.have.nested.property('npmPackages.@emotion/react');
expect(envinfo).to.have.nested.property('npmPackages.@emotion/styled');
});
Expand Down

0 comments on commit 0ebf220

Please sign in to comment.