react-styleguidist
Version:
React components style guide generator
14 lines (11 loc) • 401 B
JavaScript
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();
});