@@ -3,17 +3,18 @@ import * as emotion from 'react-emotion';
3
3
import * as ReactTestRenderer from 'react-test-renderer' ;
4
4
import { ThemeProvider } from 'emotion-theming' ;
5
5
6
- import { standard } from '../../../src/themes' ;
6
+ import { circuit } from '../../../src/themes' ;
7
7
8
8
const adjustPath = path => `../../../${ path } ` ;
9
9
10
10
const renderComponent = async ( Component , theme , props ) => {
11
11
try {
12
12
ReactTestRenderer . create (
13
- < ThemeProvider theme = { standard } >
13
+ < ThemeProvider theme = { circuit } >
14
14
< Component { ...{ theme, ...props } } />
15
15
</ ThemeProvider >
16
16
) ;
17
+ // eslint-disable-next-line no-empty
17
18
} catch ( e ) { }
18
19
} ;
19
20
@@ -75,7 +76,7 @@ const extractStyles = async ({ path, propTypes }) => {
75
76
const relativePath = adjustPath ( path ) ;
76
77
const { default : Component } = await import ( relativePath ) ;
77
78
const propGroups = createPropGroups ( propTypes ) ;
78
- propGroups . forEach ( props => renderComponent ( Component , standard , props ) ) ;
79
+ propGroups . forEach ( props => renderComponent ( Component , circuit , props ) ) ;
79
80
const { inserted } = emotion . caches ;
80
81
const regex = / - / ;
81
82
const filteredStyles = Object . entries ( inserted ) . reduce (
0 commit comments