Skip to content

Commit 8dadb89

Browse files
Update tests and example apps to run on React 18
1 parent f4898d9 commit 8dadb89

7 files changed

Lines changed: 9 additions & 12 deletions

File tree

app/over_react_redux/todo_client/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
color: ^3.0.0
99
memoize: ^3.0.0
1010
meta: ^1.16.0
11-
over_react: '>=4.8.4 <6.0.0'
11+
over_react: ^5.4.5
1212
json_annotation: ^4.6.0
1313
redux: '>=3.0.0 <6.0.0'
1414
redux_dev_tools: '>=0.4.0 <0.8.0'
@@ -21,7 +21,7 @@ dev_dependencies:
2121
dart_dev: ^4.0.0
2222
glob: ^2.0.0
2323
json_serializable: ^6.0.0
24-
over_react_test: '>=2.10.2 <4.0.0'
24+
over_react_test: ^3.0.2
2525
pedantic: ^1.8.0
2626
test: ^1.15.7
2727
test_html_builder: ^3.0.0

app/over_react_redux/todo_client/test/unit/_templates/react_components_test_template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!-- See: https://pub.dev/packages/test_html_builder -->
22
<html>
33
<head>
4-
<script src="packages/react/react_with_addons.js"></script>
5-
<script src="packages/react/react_dom.js"></script>
4+
<script src="packages/react/js/react.dev.js"></script>
65
<script src="packages/todo_client/src/test_fixtures/mock_js_objects.js"></script>
76
<script src="https://unpkg.com/@material-ui/core/umd/material-ui.development.js" crossorigin="anonymous"></script>
87

app/over_react_redux/todo_client/test/unit/_templates/react_test_template.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!-- See: https://pub.dev/packages/test_html_builder -->
22
<html>
33
<head>
4-
<script src="packages/react/react_with_addons.js"></script>
5-
<script src="packages/react/react_dom.js"></script>
4+
<script src="packages/react/js/react.dev.js"></script>
65

76
{{testScript}}
87

app/over_react_redux/todo_client/web/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
<div id="todo-container"></div>
1515

16-
<script src="packages/react/react.js"></script>
17-
<script src="packages/react/react_dom.js"></script>
16+
<script src="packages/react/js/react.dev.js"></script>
1817
<script src="https://unpkg.com/@material-ui/core/umd/material-ui.development.js" crossorigin="anonymous"></script>
1918

2019
<!-- Serve compiled output. -->

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ dev_dependencies:
3636
dependency_validator: ^3.0.0
3737
glob: ^2.0.1
3838
io: ^1.0.0
39-
react_testing_library: ^3.0.1
40-
over_react_test: ^3.0.0
39+
react_testing_library: ^3.1.1
40+
over_react_test: ^3.0.2
4141
test: ^1.20.0
4242
workiva_analysis_options: ^1.4.0
4343
yaml: ^3.1.0

tools/analyzer_plugin/playground/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.0.0
33
environment:
44
sdk: ">=2.13.0 <3.0.0"
55
dependencies:
6-
over_react: '>=3.5.3 <6.0.0'
6+
over_react: ^5.4.5
77
dev_dependencies:
88
build_runner: ^2.0.0
99
build_web_compilers: ^3.0.0

tools/analyzer_plugin/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
# Upon release, this should be pinned to the over_react version from ../../pubspec.yaml
1414
# so that it always resolves to the same version of over_react that the user has pulled in,
1515
# and thus has the same boilerplate parsing code that's running in the builder.
16-
over_react: 5.4.5
16+
over_react: ^5.4.5
1717
path: ^1.5.1
1818
source_span: ^1.7.0
1919
yaml: ^3.0.0

0 commit comments

Comments
 (0)