fbredius/storybook

View on GitHub
docs/snippets/common/storybook-storyshots-custom-framework.js.mdx

Summary

Maintainability
Test Coverage
```js
// storybook.test.js

import path from 'path';
import initStoryshots from '@storybook/addon-storyshots';

initStoryshots({
  framework: 'vue3', //👈 Manually specify the project's framework
  configPath: path.join(__dirname, '.storybook'),
  integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
  // Other configurations
});
```