Commit 737c7402 by Wee

test: import `Route` test from react-router

parent 1242da81
import React from "react";
let StrictMode = function(props) {
return props.children || null;
};
if (React.StrictMode) {
StrictMode = React.StrictMode;
}
export default StrictMode;
import React from "react";
import ReactDOM from "react-dom";
import StrictMode from "./StrictMode";
function renderStrict(element, node) {
ReactDOM.render(<StrictMode>{element}</StrictMode>, node);
}
export default renderStrict;
...@@ -5,7 +5,7 @@ var __extends = (this && this.__extends) || (function () { ...@@ -5,7 +5,7 @@ var __extends = (this && this.__extends) || (function () {
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b); return extendStatics(d, b);
}; }
return function (d, b) { return function (d, b) {
extendStatics(d, b); extendStatics(d, b);
function __() { this.constructor = d; } function __() { this.constructor = d; }
......
...@@ -29,10 +29,12 @@ ...@@ -29,10 +29,12 @@
"warning": "^4.0.1" "warning": "^4.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^24.0.9",
"@types/react": "^16.7.18", "@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11", "@types/react-dom": "^16.0.11",
"jest": "^23.1.0", "jest": "^23.1.0",
"react-addons-test-utils": "^15.6.2", "react-addons-test-utils": "^15.6.2",
"ts-jest": "^24.0.0",
"tslint-config-prettier": "^1.17.0" "tslint-config-prettier": "^1.17.0"
}, },
"jest": { "jest": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment