Skip to content

Added snapshotWithOptions to configure storyshots rendering options#1090

Merged
tmeasday merged 3 commits intomasterfrom
component-with-ref-example
May 23, 2017
Merged

Added snapshotWithOptions to configure storyshots rendering options#1090
tmeasday merged 3 commits intomasterfrom
component-with-ref-example

Conversation

@tmeasday
Copy link
Copy Markdown
Member

Issue:

See for instance #896 -- it's a common problem to need mocked nodes.

This solution is probably a bit of a bandaid, as large projects would probably want to set options per-story, this is a lot better than nothing in the meantime.

Fixes #1085, and to some degree #881 and #876

What I did

Added a snapshotWithOptions test body, and an example of usage in the test-cra app.

How to test

Run npm test. Try removing the test option and it should fail with an undefined access issue.

tmeasday added 2 commits May 22, 2017 15:25
See for instance #896 -- it's a common problem to need mocked nodes. 

This solution is probably a bit of a bandaid, as large projects would probably want to set options per-story, this is a lot better than nothing in the meantime.
@tmeasday tmeasday requested a review from ndelangen May 22, 2017 05:29
@tmeasday tmeasday changed the title Added a snapshotWithOptions test body and example Added a snapshotWithOptions to allow configuring rendering options in Storyshots May 22, 2017
@tmeasday tmeasday changed the title Added a snapshotWithOptions to allow configuring rendering options in Storyshots Added snapshotWithOptions to allow configuring rendering options in Storyshots May 22, 2017
@tmeasday tmeasday mentioned this pull request May 22, 2017
@tmeasday tmeasday merged commit 52cffb8 into master May 23, 2017
@shilman shilman added the misc label May 27, 2017
@ndelangen ndelangen deleted the component-with-ref-example branch May 27, 2017 22:54
@shilman shilman changed the title Added snapshotWithOptions to allow configuring rendering options in Storyshots Added snapshotWithOptions to configure Storyshots rendering options May 28, 2017
@shilman shilman changed the title Added snapshotWithOptions to configure Storyshots rendering options Added snapshotWithOptions to configure storyshots rendering options May 28, 2017
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Sep 18, 2025

View your CI Pipeline Execution ↗ for commit abac423

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 5s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-18 13:59:06 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants