Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests on React 17 #498

Merged
merged 3 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
"dependencies": {
"@types/mdast": "^3.0.3",
"@types/unist": "^2.0.3",
"html-to-react": "^1.3.4",
"html-to-react": "^1.4.5",
"mdast-add-list-metadata": "1.0.1",
"prop-types": "^15.7.2",
"react-is": "^16.8.6",
"react-is": "^17.0.0",
"remark-parse": "^9.0.0",
"unified": "^9.0.0",
"unist-util-visit": "^2.0.0",
"xtend": "^4.0.1"
},
"peerDependencies": {
"@types/react": "^15.0.0 || ^16.0.0",
wooorm marked this conversation as resolved.
Show resolved Hide resolved
"react": "^15.0.0 || ^16.0.0"
"react": ">=16"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand All @@ -64,21 +64,21 @@
"@rollup/plugin-replace": "^2.0.0",
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.1.1",
rexxars marked this conversation as resolved.
Show resolved Hide resolved
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"dtslint": "^4.0.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.0.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-sanity": "^4.0.0",
"eslint-plugin-react": "^7.0.0",
"jest": "^26.0.0",
"npm-run-all": "^4.0.0",
"prettier": "^2.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-katex": "^2.0.0",
"react-test-renderer": "^16.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-test-renderer": "^17.0.0",
"remark-cli": "^9.0.0",
"remark-gfm": "^1.0.0",
"remark-math": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/react-markdown.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */
/* eslint-disable react/prop-types */
const Enzyme = require('enzyme')
const Adapter = require('enzyme-adapter-react-16')
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')
const fs = require('fs')
const path = require('path')
const React = require('react')
Expand Down