Skip to content

Commit

Permalink
fix(cypress): add polyfill for cypress open
Browse files Browse the repository at this point in the history
`cypress run` is ok but `cypress open` fails due to lack of support of:
- Array.prototype.includes
- Object.entries
  • Loading branch information
topheman committed Apr 24, 2018
1 parent ecd1ace commit 791466f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"invariant": "^2.2.3",
"js-md5": "^0.7.3",
"material-ui": "^1.0.0-beta.43",
"mdn-polyfills": "^5.5.0",
"prop-types": "^15.6.1",
"react": "^16.3.2",
"react-dom": "^16.3.2",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import React from "react";
import ReactDOM from "react-dom";
import { MuiThemeProvider, createMuiTheme } from "material-ui/styles";

// cypress:open doesn't support the following, we need to pollyfill ...
import "mdn-polyfills/Array.prototype.includes";
import "mdn-polyfills/Object.entries";

import "./index.css";
import RootContainer from "./containers/RootContainer";
import registerServiceWorker from "./registerServiceWorker";
Expand Down

0 comments on commit 791466f

Please sign in to comment.