UNPKG

@epa-wg/custom-element-test

Version:

binary distribution, test, and storybook project for custom-element

34 lines (27 loc) 715 B
import { initialize, mswDecorator, mswLoader } from 'msw-storybook-addon' import './common.css'; import {handlers} from "../src/mocks/handlers"; export const parameters = { // actions: { argTypesRegex: "^on[A-Z].*" }, controls: { sort: 'requiredFirst', matchers: { color: /(background|color)$/i, date: /Date$/, }, }, msw: {handlers}, }; // Initialize MSW initialize(); // Provide the MSW addon decorator globally export const decorators = [mswDecorator]; // export const decorators = []; const preview = { parameters: { // your other code... }, // Provide the MSW addon loader globally loaders: [mswLoader], } export default preview