16-February-2016
Move set channel to happen before anything runs because addons might init expecting the channel to exist. PR75
21-January-2016
Provide mock Storybook Channel to Storybook addons. PR72
30-December-2016
Add support to filter stories by story name using a regexp. PR70
27-December-2016
Pass storybook context to render function of stories. PR69
24-December-2016
Add support for require.context. PR67
22-December-2016
This is a brand new version of StoryShots where it allows you to use StoryShots inside Jest. Earlier we have also bundled a CLI tool which uses some of the internal modules used by Jest.
But it seems like we are building an our own Jest with that. That's why we decided to go with this approach.
If you still like to use our CLI version, use this version. (It's working but we no longer maintain it.)
8-November-2016
Default loaders support markdown file PR56
7-November-2016
NODE_ENV
is set to"development"
by default PR50require.context
regexp test includes the begining./
of filenames PR55
20-October-2016
Prepare channel before reading storybook as some addons use it before running stories. PR41
11-October-2016
- Update
jest-snapshot
to version 16.0.0. PR39 - Use a directory and extension different from regular jest snapshots for storyshots. PR40
From version 2.0.0 by default storyshot files will be stored in a directory named __storyshots__
(instead of __snapshots__
) inside storybook config directory. Further storyshot files will use extension .shot
instead of .snap
.
These changes are important because they allow storyshots to be used with jest in the same project. See issue#34 for more info.
This mean that once storyshots is updated to 2.0.0 it wont check your existing snapshots. It will create new snapshots in the new location and you can delete old ones.
To update safely, follow these steps.
- Run your 1.x.x version of storyshots and make sure all stories pass.
- Update storyshots.
npm install @kadira/storyshots@^2.0.0 --save-dev
- Delete
__snapshots__
directory and contents from your storybook config directory. Also remove it from your version control system. - Run updated storyshots and add the newly added
__storyshots__
directory to your version control system.
Done!
9-October-2016
Fix issue where require.context
did not work with regexps for full path. PR37
6-October-2016
Add support for require.context
inside storybook config module. The regression introduced in v1.1.2 is addressed. PR33
30-September-2016
v1.1.2 introduce a regression. So this revert that version.
30-September-2016
Add support for require.context
inside storybook config module. PR30
28-September-2016
- Watch mode Summary shows the stats for the last run only. PR27
- If some tests fail exit with status code 1. PR28
27-September-2016
Add --exclude
flag to avoid running stories matching a given regexp. PR24 PR25
25-September-2016
Invalid Version. Same as v1.0.3
23-September-2016
Fix a typo in the console Summary message.
22-September-2016
Fix: Allow module loaders to return something. PR14
22-September-2016
Fix a typo.
22-September-2016
Initial Release.