Skip to content

Commit

Permalink
Update js tests with React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Aug 4, 2023
1 parent 533b7f4 commit 51279cb
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 156 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ format-check: ## Checks if format is correct
.PHONY: install
install: ## Update the package dependencies when new deps are added to dune-project
@opam install . --deps-only --with-test
@npm install
@npm install --legacy-peer-deps

.PHONY: init
create-switch: ## Create a local opam switch
Expand Down
162 changes: 73 additions & 89 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"homepage": "https://reasonml.github.io/reason-react/",
"devDependencies": {
"jest": "^26.0.1",
"react": "^16.8.1",
"react-dom": "^16.8.1",
"react-test-renderer": "^16.13.1"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0"
},
"peerDependencies": {
"react": "^16.8.1",
"react-dom": "^16.8.1"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"jest": {
"moduleDirectories": [
Expand Down
2 changes: 1 addition & 1 deletion test/ReactTestRenderer__test.re
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Tester = {
let make = () => <div> {React.string("Tester")} </div>;
};

describe("reactTestRenderer", () => {
describe("ReactTestRenderer", () => {
open Expect;

test("create returns ReactTestInstance", () => {
Expand Down
Loading

0 comments on commit 51279cb

Please sign in to comment.