mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-24 05:02:24 +08:00
34 lines
637 B
TypeScript
34 lines
637 B
TypeScript
import build from '@storybook/core/standalone';
|
|
|
|
jest.mock('@storybook/core/standalone');
|
|
|
|
describe.each([
|
|
['angular'],
|
|
['aurelia'],
|
|
['ember'],
|
|
['html'],
|
|
['marko'],
|
|
['mithril'],
|
|
['preact'],
|
|
['rax'],
|
|
['react'],
|
|
['riot'],
|
|
['server'],
|
|
['svelte'],
|
|
['vue'],
|
|
['vue3'],
|
|
['web-components'],
|
|
])('%s', (app) => {
|
|
it('should run standalone', async () => {
|
|
// eslint-disable-next-line import/no-dynamic-require, global-require
|
|
const storybook = require(`@storybook/${app}/standalone`);
|
|
|
|
await storybook({
|
|
mode: 'static',
|
|
outputDir: '',
|
|
});
|
|
|
|
expect(build).toHaveBeenCalled();
|
|
});
|
|
});
|