source-academy / frontend

Frontend of Source Academy, an online experiential environment for computational thinking (React, Redux, Saga, Blueprint)
https://sourceacademy.org
Apache License 2.0
103 stars 167 forks source link

Replace `act` import deprecation warnings #3050

Closed TheMythologist closed 2 months ago

TheMythologist commented 2 months ago

Description

Gets rid of the warning when running tests:

Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.

Reference: https://react.dev/warnings/react-dom-test-utils#reactdomtestutilsact-warning

Type of change

Checklist

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10979072522

Details


Totals Coverage Status
Change from base Build 10953231367: 0.0%
Covered Lines: 4852
Relevant Lines: 14547

💛 - Coveralls