-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8979c6f
commit 1d319e9
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,16 @@ describe('@mui/envinfo', () => { | |
// Other libraries | ||
expect(envinfo).to.have.nested.property('npmPackages.react'); | ||
expect(envinfo).to.have.nested.property('npmPackages.react-dom'); | ||
expect(envinfo).to.have.nested.property('npmPackages.@types/react'); | ||
|
||
// 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.@emotion/react'); | ||
expect(envinfo).to.have.nested.property('npmPackages.@emotion/styled'); | ||
}); | ||
|