2025-03-05 15:34:59 +01:00

28 lines
517 B
TypeScript

import { global as globalThis } from '@storybook/global';
import { spyOn } from 'storybook/test';
const meta = {
component: globalThis.Components.Button,
beforeEach() {
spyOn(console, 'log').mockName('console.log');
console.log('first');
},
};
export default meta;
export const ShowSpyOnInActions = {
parameters: {
chromatic: { disable: true },
},
beforeEach() {
console.log('second');
},
args: {
label: 'Button',
onClick: () => {
console.log('third');
},
},
};