UNPKG

styled-components

Version:

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

19 lines (16 loc) • 487 B
// @flow const consoleError = console.error beforeEach(() => { // Suppress errors from JSDOM CSS parser // See: https://github.com/jsdom/jsdom/issues/2177 // eslint-disable-next-line flowtype-errors/show-errors ;(console: any).error = message => { if (!message.includes('Error: Could not parse CSS stylesheet')) { consoleError(message) } } }) afterEach(() => { // eslint-disable-next-line flowtype-errors/show-errors ;(console: any).error = consoleError })