UNPKG

react-styleguidist

Version:
14 lines (11 loc) 401 B
import path from 'path'; import identity from 'lodash/identity'; import getComponents from '../getComponents'; it('getComponents() should return an object for components', () => { const result = getComponents(['Foo.js', 'Bar.js'], { configDir: path.resolve(__dirname, '../../../test'), getExampleFilename: identity, getComponentPathLine: identity, }); expect(result).toMatchSnapshot(); });