storybook/docs/_snippets/before-all-in-preview.md
2024-07-10 12:36:28 -06:00

553 B

import { init } from '../project-bootstrap';

export default {
  async beforeAll() {
    await init();
  },
};
// Replace your-renderer with the renderer you are using (e.g., react, vue3, angular, etc.)
import { Preview } from '@storybook/your-renderer';

import { init } from '../project-bootstrap';

const preview: Preview = {
  async beforeAll() {
    await init();
  },
};

export default preview;