-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26811 from storybookjs/version-non-patch-from-8.1…
….0-alpha.7 Release: Prerelease 8.1.0-alpha.8
- Loading branch information
Showing
293 changed files
with
16,207 additions
and
4,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
import { global as globalThis } from '@storybook/global'; | ||
import { spyOn } from '@storybook/test'; | ||
|
||
export default { | ||
const meta = { | ||
component: globalThis.Components.Button, | ||
loaders() { | ||
beforeEach() { | ||
spyOn(console, 'log').mockName('console.log'); | ||
}, | ||
args: { | ||
label: 'Button', | ||
}, | ||
parameters: { | ||
chromatic: { disable: true }, | ||
console.log('first'); | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const ShowSpyOnInActions = { | ||
parameters: { | ||
chromatic: { disable: true }, | ||
}, | ||
beforeEach() { | ||
console.log('second'); | ||
}, | ||
args: { | ||
label: 'Button', | ||
onClick: () => { | ||
console.log('first'); | ||
console.log('second'); | ||
console.log('third'); | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.