react-styleguidist
Version:
React components style guide generator
15 lines (11 loc) • 444 B
JavaScript
import path from 'path';
import processComponent from '../processComponent';
const config = {
configDir: __dirname,
getExampleFilename: componentpath => path.join(path.dirname(componentpath), 'Readme.md'),
getComponentPathLine: componentpath => componentpath,
};
it('processComponent() should return an object for section with content', () => {
const result = processComponent('pizza.js', config);
expect(result).toMatchSnapshot();
});