mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:01:11 +08:00
CHANGE storyshots on cra-kitchen-sink to use this new feature
MOVE previous snapshots from storyshots to __snapshots__
This commit is contained in:
parent
8e87fb8ba6
commit
af02e15374
@ -6,3 +6,5 @@ initStoryshots({
|
||||
configPath: path.join(__dirname, '..', '.storybook'),
|
||||
test: multiSnapshotWithOptions({}),
|
||||
});
|
||||
|
||||
console.log('Hey');
|
||||
|
@ -2489,29 +2489,6 @@ exports[`Storyshots Cells/Molecules/Atoms.more with text2 1`] = `
|
||||
</button>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Navigation Menu link 1`] = `
|
||||
<div
|
||||
className="css-t9df35"
|
||||
>
|
||||
<a
|
||||
className="css-1enjukp"
|
||||
href="/"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Menu link item
|
||||
</a>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Navigation Routed link 1`] = `
|
||||
<a
|
||||
href="/"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Try clicking with different mouse buttons and modifier keys (shift/ctrl/alt/cmd)
|
||||
</a>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Some really long story kind description with text 1`] = `
|
||||
<div
|
||||
style={
|
@ -0,0 +1,24 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Storyshots Navigation Menu link 1`] = `
|
||||
<div
|
||||
className="css-t9df35"
|
||||
>
|
||||
<a
|
||||
className="css-1enjukp"
|
||||
href="/"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Menu link item
|
||||
</a>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Storyshots Navigation Routed link 1`] = `
|
||||
<a
|
||||
href="/"
|
||||
onClick={[Function]}
|
||||
>
|
||||
Try clicking with different mouse buttons and modifier keys (shift/ctrl/alt/cmd)
|
||||
</a>
|
||||
`;
|
@ -1,4 +1,4 @@
|
||||
import initStoryshots, { snapshotWithOptions } from '@storybook/addon-storyshots';
|
||||
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';
|
||||
import path from 'path';
|
||||
|
||||
function createNodeMock(element) {
|
||||
@ -11,7 +11,7 @@ function createNodeMock(element) {
|
||||
initStoryshots({
|
||||
framework: 'react',
|
||||
configPath: path.join(__dirname, '..', '.storybook'),
|
||||
test: snapshotWithOptions({
|
||||
test: multiSnapshotWithOptions({
|
||||
createNodeMock,
|
||||
}),
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user