forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC snapshots using jest's test.concurrent
- Loading branch information
1 parent
24898c8
commit 72f58da
Showing
64 changed files
with
2,665 additions
and
1 deletion.
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
29 changes: 29 additions & 0 deletions
29
examples/cra-kitchen-sink/src/__snapshots__/App.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<div | ||
className="App" | ||
> | ||
<div | ||
className="App-header" | ||
> | ||
<img | ||
alt="logo" | ||
className="App-logo" | ||
src="file-stub" | ||
/> | ||
<h2> | ||
Welcome to React | ||
</h2> | ||
</div> | ||
<p | ||
className="App-intro" | ||
> | ||
To get started, edit | ||
<code> | ||
src/App.js | ||
</code> | ||
and save to reload. | ||
</p> | ||
</div> | ||
`; |
7 changes: 7 additions & 0 deletions
7
examples/cra-kitchen-sink/src/__snapshots__/Lifecycle.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<div> | ||
Lifecycle methods are logged to the console | ||
</div> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-1.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[` 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-10.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[` 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-11.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[` 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-12.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[` 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[` 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-13.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots App full app 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[`Storyshots App full app 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
46 changes: 46 additions & 0 deletions
46
examples/cra-kitchen-sink/src/__snapshots__/button-14.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots App full app 1`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
Hello Button | ||
</button> | ||
`; | ||
|
||
exports[`Storyshots App full app 2`] = ` | ||
<button | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#FFFFFF", | ||
"border": "1px solid #eee", | ||
"borderRadius": 3, | ||
"cursor": "pointer", | ||
"fontSize": 15, | ||
"margin": 10, | ||
"padding": "3px 10px", | ||
} | ||
} | ||
type="button" | ||
> | ||
<span | ||
aria-label="yolo" | ||
role="img" | ||
> | ||
😀 😎 👍 💯 | ||
</span> | ||
</button> | ||
`; |
Oops, something went wrong.