- maintenance: remove no-manager-cache flag in example storybook #331 (@MH4GF)
- Fix extra args not being passed to jest #322 (@zyulyaev @yannbf)
- Fix empty coverage report #324 (@bryanjtc @yannbf)
- docs: fix github actions example for shard usage #320 (@MH4GF)
- Bryan Thomas (@bryanjtc)
- Hirotaka Miyagi (@MH4GF)
- Nikita Zyulyaev (@zyulyaev)
- Valentin Palkovic (@valentinpalkovic)
- Yann Braga (@yannbf)
- Release 0.11.0 #318 (@bryanjtc @yannbf @ndelangen @unshame @valentinpalkovic @vanessayuenn)
- Bundle with tsup and replace babel-jest #250 (@bryanjtc @yannbf @ndelangen)
- Change dependencies from
future
npm tag tonext
#315 (@yannbf) - fix: nyc command with shard option #257 (@bryanjtc @yannbf)
- Improve ejected config types #297 (@yannbf)
- fix: Remove last reference to regenerator-runtime #303 (@bryanjtc)
- fix(test-storybook): Fix test-runner-jest.config.js file not being found in STORYBOOK_CONFIG_DIR on Windows #296 (@unshame)
- Upgrade glob to v10 #299 (@valentinpalkovic)
- Bryan Thomas (@bryanjtc)
- Norbert de Langen (@ndelangen)
- UnShame (@unshame)
- Valentin Palkovic (@valentinpalkovic)
- Vanessa Yuen (@vanessayuenn)
- Yann Braga (@yannbf)
- Bump @storybook/csf to 0.1.0 #288 (@kasperpeulen)
- support Storybook 7.0.0 #283 (@yannbf)
- Update getStorybookMain to throw an error if stories are not found in main.js #278 (@valentinpalkovic)
- Extend hooks api with
prepare
andgetHttpHeaders
properties #245 (@yannbf) - Use preview api instead of store #273 (@kasperpeulen)
- Support other test-runner config extensions #259 (@yannbf)
- Use ipv4 loopback address #252 (@IanVS)
- Fix safe json stringify code #239 (@hansottowirtz)
- feat: add shard cli option #243 (@Niznikr @yannbf)
- Updating deps to handle TS 4.9 #237 (@kasperpeulen)
- Fix target url in error feedback #233 (@yannbf)
- Remove unused development packages #227 (@yannbf)
- Make setup-page globally available for index.json mode compatibility #217 (@yannbf)
- Upgrade CSF to next #212 (@shilman)
- Fix missing dependencies #209 (@bryanjtc)
- Document index.json mode for Svelte CSF #263 (@JReinhold)
- Docs: add recipe for browser name #221 (@yannbf)
- Bryan Thomas (@bryanjtc)
- Hans Otto Wirtz (@hansottowirtz)
- Ian VanSchooten (@IanVS)
- Jeppe Reinhold (@JReinhold)
- Kasper Peulen (@kasperpeulen)
- Michael Shilman (@shilman)
- Robert Niznik (@Niznikr)
- Valentin Palkovic (@valentinpalkovic)
- Yann Braga (@yannbf)
- Release 0.9.4 #258 (@yannbf)
- Support other test-runner config extensions #259 (@yannbf)
- Use ipv4 loopback address #252 (@IanVS)
- Fix safe json stringify code #239 (@hansottowirtz)
- Hans Otto Wirtz (@hansottowirtz)
- Ian VanSchooten (@IanVS)
- Yann Braga (@yannbf)
- Yann Braga (@yannbf)
- Release 0.9.1 #223 (@yannbf @shilman)
- Fix missing dependencies #209 (@bryanjtc)
- Make setup-page globally available for index.json mode compatibility #217 (@yannbf)
- Upgrade nightly to next instead of future #213 (@shilman)
- feat: add cli option --ci #204 (@italoteix)
- Upgrade preset-env to latest #202 (@shilman)
- Fix nightly check for failures #197 (@yannbf)
- Improve error logging and ensure non-zero exit #201 (@IanVS)
- Ian VanSchooten (@IanVS)
- Γtalo Teixeira (@italoteix)
- Michael Shilman (@shilman)
- Yann Braga (@yannbf)
- Fix StorybookTestRunnerError β length on undefined #194 (@ericclemmons)
- Eric Clemmons (@ericclemmons)
- Ian VanSchooten (@IanVS)
- Yann Braga (@yannbf)
- 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)