Skip to content

Commit

Permalink
removed throw-warning for components
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdugne committed Nov 15, 2017
1 parent f35ce74 commit 98bb6c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions packages/@coorpacademy-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
],
"require": [
"babel-register",
"babel-polyfill",
"../../test/helpers/throw-warning"
"babel-polyfill"
],
"babel": "inherit"
},
Expand Down
7 changes: 0 additions & 7 deletions test/helpers/throw-warning.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
const ignored = [
'Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills'
];

// eslint-disable-next-line no-console
console.warn = (...args) => {
throw new Error(...args);
};
// eslint-disable-next-line no-console
console.error = (...args) => {
if (ignored.includes(args[0])) {
return;
}
throw new Error(...args);
};

0 comments on commit 98bb6c9

Please sign in to comment.