[cli][fs-detectors][frameworks] Add Storybook support (#9839)

Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Sean Massa <EndangeredMassa@gmail.com>
This commit is contained in:
Chris Barber
2023-05-01 11:25:06 -05:00
committed by GitHub
parent da046d85de
commit 9240cbc022
74 changed files with 2652 additions and 3 deletions

View File

@@ -13,7 +13,13 @@ describe('examples should be detected', () => {
throw new Error(`Framework not detected for example "${exampleName}".`);
}
expect(framework).toBe(exampleName);
if (exampleName === 'storybook') {
// Storybook isn't really a "framework", in this case, it's really a
// Next.js app
expect(framework).toBe('nextjs');
} else {
expect(framework).toBe(exampleName);
}
}
);
});