We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2314649 commit b471230Copy full SHA for b471230
src/__tests__/main-test.js
@@ -230,8 +230,11 @@ describe('main', () => {
230
const fileContent = fs.readFileSync(path.join(fixturePath, fileNames[i]));
231
232
it(`processes component "${fileNames[i]}" without errors`, () => {
233
- expect(() => docgen.parse(fileContent)).not.toThrowError();
234
- expect(docgen.parse(fileContent)).toMatchSnapshot();
+ let result;
+ expect(() => {
235
+ result = docgen.parse(fileContent);
236
+ }).not.toThrowError();
237
+ expect(result).toMatchSnapshot();
238
});
239
}
240
0 commit comments