Skip to content

Commit

Permalink
[Redirect] don't import entire history module (#6278)
Browse files Browse the repository at this point in the history
* [Redirect] don't import entire history module

* fix jest config (jestjs/jest#6769)

* fix jest config (jestjs/jest#6769)

* fix jest config (jestjs/jest#6769)

* fix jest config (jestjs/jest#6769)
  • Loading branch information
petermikitsh authored and timdorr committed Aug 5, 2018
1 parent 3f63a2a commit 13a855b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/react-router-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"jest": {
"setupFiles": [
"raf/polyfill"
]
],
"testURL": "http://localhost/"
},
"keywords": [
"react",
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
"jest": {
"setupFiles": [
"raf/polyfill"
]
],
"testURL": "http://localhost/"
},
"keywords": [
"react",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-router-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@
"rollup": "^0.60.0",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-uglify": "^3.0.0"
},
"jest": {
"testURL": "http://localhost/"
}
}
2 changes: 1 addition & 1 deletion packages/react-router/modules/Redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types";
import warning from "warning";
import invariant from "invariant";
import { createLocation, locationsAreEqual } from "history";
import { createLocation, locationsAreEqual } from "history/LocationUtils";
import generatePath from "./generatePath";

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"jest": {
"setupFiles": [
"raf/polyfill"
]
],
"testURL": "http://localhost/"
},
"keywords": [
"react",
Expand Down

0 comments on commit 13a855b

Please sign in to comment.