- Support Storybook 7.0 play function exceptions #190 (@tmeasday @yannbf)
- fix snapshots & remove vscode color settings #192 (@ndelangen)
- Michael Shilman (@shilman)
- Norbert de Langen (@ndelangen)
- Tom Coleman (@tmeasday)
- Yann Braga (@yannbf)
- docs(README): Update a11y recipe #186 ([email protected])
- Ian VanSchooten (@IanVS)
- Michael Shilman (@shilman)
- Nagisa Ando (@nagisaando)
- Yann Braga (@yannbf)
Update Jest to 28 (#174)
This release updates the internal version of Jest to version 28. You can now remove jest
and jest-preset-playwright
from your package.json
if you're not using them in other parts of your project!
- Yann Braga (@yannbf)
add --junit flag to test runner (#179)
The test runner now supports JUnit XML test reports out of the box with a --junit
flag:
yarn test-storybook --junit
With that flag, the test runner will add jest-junit
to the reporters list and generate a test report in a JUnit XML format. You can further configure the behavior of jest-junit
by either setting specific JEST_JUNIT_*
environment variables or by defining a jest-junit
field in your package.json with the options you want, which will be respected when generating the report. You can look at all available options here: https://github.com/jest-community/jest-junit#configuration
- Yann Braga (@yannbf)
Support storyStoreV7 in coverage check (#177)
This release fixes an issue where the coverage check was not working for projects using storyStoreV7.
- Yann Braga (@yannbf)
feat: turn Jest into an internal dependency (#175)
The Storybook test runner will now contain Jest as an internal dependency, which means that if you installed Jest just for the purpose of using the Storybook test runner, you can now remove it!
- Yann Braga (@yannbf)
support Storybook 7.0 root selector (#172)
In Storybook 7.0, the root selector changed from #root to #storybook-root. Both selectors are now supported in the internals of the test runner
- Yann Braga (@yannbf)
fix --watch cli option (#168)
The --watch
flag was previously not working, and now it's fixed.
feat: throw error on unconfigured coverage when running with --coverage (#166)
The test runner now throws an error when running yarn test-storybook --coverage
and the coverage is not correctly set up. This could mean that an user might be running --coverage
without instrumenting their code with istanbul, which would lead to problems!
feat: add console logs on test failure (#157)
feat: add console logs on test failure This version adds console logs to the output of failed tests, in order to as provide as much information as possible to help you diagnose your issues.
feat: jest 28 support (#154)
This release updates jest-playwright
to version 2.0.0 which adds support for Jest 28. In order to maintain backwards compatibility with Jest 27, you might have to take a few steps in case you are installing the test runner for the first time, or if you don't keep package locks in your project.
You can find more info at https://github.com/storybookjs/test-runner#jest-27-support
- feat: add console logs on test failure #157 (@yannbf)
- feat: jest 28 support #154 (@andykenward @yannbf)
- Add commit hooks #170 (@yannbf)
- undo Jest 28 support #169 (@yannbf)
- fix --watch cli option #168 (@yannbf)
- feat: throw error on unconfigured coverage when running with --coverage #166 (@yannbf)
- Document new cli options #167 (@yannbf)
- Add nightly check for failures #165 (@yannbf)
- Update stories in example Storybook #164 (@yannbf)
- use storybook@future on nightly script #162 (@yannbf)
- Andy Kenward (@andykenward)
- Yann Braga (@yannbf)
Replace is-localhost-ip with can-bind-to-host (#144)
This release replaces an internal dependency is-localhost-ip
with can-bind-to-host
due to a licensing issue in can-bind-to-host
.
- fix: support index.html URLs #139 (@yannbf)
- Document need for a custom snapshotResolver #131 (@FokkeZB)
- Fokke Zandbergen (@FokkeZB)
- Kaelig Deloumeau-Prigent (@kaelig)
- Tom Coleman (@tmeasday)
- Yann Braga (@yannbf)
Support code coverage (#120)
Support code coverage (#120)
- Yann Braga (@yannbf)
feat: provide global getStoryContext utility (#125)
- chore(DEPS): update jest-playwright-preset #119 (@bodograumann)
- chore(CI): add sb versions to report [skip release] #118 (@yannbf)
- feat: support DOM snapshot testing #117 (@yannbf)
- Add reporting to CI #113 (@yannbf)
- Updates readme to lock Jest to version 27 #115 (@jonniebigodes)
- @jonniebigodes
- Bodo Graumann (@bodograumann)
- Yann Braga (@yannbf)
- Document issue with Jest on Windows CI #105 (@joshwooding)
- Josh Wooding (@joshwooding)
- Yann Braga (@yannbf)
fix: Support Storybook 6.5 (#107)
This version adds support to Storybook 6.5 and drops support for Storybook 6.4. Unfortunately there was a breaking change in an internal API from @storybook/store
which is used by the test runner, which only affects users that use the auto title feature.
Changes included from this pull request (#107)
- fix: Support Storybook 6.5 #107 ([email protected] @yannbf @valentinpalkovic)
- Valentin Palkovic (@valentinpalkovic)
- Valentin PalkoviΔ ([email protected])
- Yann Braga (@yannbf)
- Move storybook packages to peer deps #101 (@IanVS @yannbf)
- Limit jest to version 26 or 27 #98 (@bodograumann)
- Bodo Graumann (@bodograumann)
- Ian VanSchooten (@IanVS)
- Yann Braga (@yannbf)
- Fixup README typo. #93 (@MichaelHatherly)
- Add output limit #94 (@yannbf)
- Michael Hatherly (@MichaelHatherly)
- Yann Braga (@yannbf)
- cleanup page opened log #86 (@yannbf)
- Add ability to test docs pages via VIEW_MODE env var #79 (@shilman)
- cleanup jsdom related code #67 (@yannbf)
- Gert Hengeveld (@ghengeveld)
- Michael Shilman (@shilman)
- Yann Braga (@yannbf)
- Yann Braga (@yannbf)
- fix: reset page between tests #47 (@yannbf)
- feat: add typeahead jest plugin #61 (@yannbf)
- feat: auto detect stories json mode #60 (@yannbf)
- feat: add url flag #58 (@yannbf)
- feat: add browsers flag #55 (@yannbf)
- fix: add file location to eject error message #57 (@yannbf)
- feat: add eject command #54 (@yannbf)
- Test-runner file for hook configuration #53 (@shilman)
- feat: add update snapshot command to cli #52 (@yannbf)
- fix: improve error message in start-storybook #51 (@yannbf)
- Respect stories defined in main.js #46 (@yannbf)
- Add setPreRender/setPostRender hooks & example #38 (@shilman @yannbf)
- Add CLI wrapper #41 (@yannbf)
- Cleanup play function checks #37 (@yannbf)
- Support auto title stories #35 (@yannbf)
- Add stories.json support #31 (@shilman)
- Add test runner to ci #26 (@yannbf @shilman)
- Update ci recipes and timeout feedback #27 (@yannbf)
- fix: move test-runner default configuration location and resolution #25 (@yannbf)