Skip to content

Latest commit

Β 

History

History
1006 lines (610 loc) Β· 44.7 KB

CHANGELOG.md

File metadata and controls

1006 lines (610 loc) Β· 44.7 KB

v0.20.1 (Mon Dec 02 2024)

πŸ› Bug Fix

Authors: 1


v0.20.0 (Thu Nov 28 2024)

Release Notes

Feature: Run postVisit on failures (#494)

The test-runner's postVisit hook now runs even if there are failures. This allows you to, for instance, take snapshots on component failures. You can check whether the test has failed via the hasFailure property in the context passed to the hook:

const config: TestRunnerConfig = {
  async postVisit(_page, context) {
    if(context.hasFailure) {
      console.log('problems!')
      // do a snapshot, write a log, or anything you like
    }
  },
}

πŸš€ Enhancement

πŸ“ Documentation

Authors: 6


v0.19.1 (Mon Jul 15 2024)

πŸ› Bug Fix

Authors: 2


v0.19.0 (Sat Jun 22 2024)

πŸš€ Enhancement

πŸ› Bug Fix

  • Fix: Combine tags correctly when transforming story files #485 (@yannbf)
  • Fix contents of eject functionality #483 (@yannbf)
  • Unpin @swc/core from 1.5.7 #481 (@ysgk)

Authors: 3


v0.18.2 (Wed May 29 2024)

πŸ› Bug Fix

Authors: 3


v0.18.1 (Fri May 17 2024)

πŸ› Bug Fix

Authors: 1


v0.18.0 (Thu May 09 2024)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 2


v0.17.0 (Mon Mar 11 2024)

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation

  • Docs: Add remark regarding pnp support #432 (@yannbf)
  • docs: replace postRender(deprecated) with postVisit #418 (@junkisai)

Authors: 6


v0.16.0 (Mon Nov 27 2023)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 4


v0.15.2 (Tue Nov 21 2023)

πŸ› Bug Fix

Authors: 3


v0.15.1 (Thu Nov 16 2023)

πŸ› Bug Fix

  • fix: Make tags optional in TestRunnerConfig #391 (@stramel)

Authors: 2


v0.15.0 (Thu Nov 16 2023)

πŸš€ Enhancement

  • Add support for test filtering via tags #382 (@yannbf)

πŸ› Bug Fix

Authors: 4


v0.14.1 (Mon Nov 13 2023)

πŸ› Bug Fix

  • Fix: Do not set test root outside index json mode #387 (@yannbf)

Authors: 1


v0.14.0 (Wed Nov 08 2023)

πŸš€ Enhancement

πŸ› Bug Fix

🏠 Internal

πŸ“ Documentation

  • Docs: Expand ejected config docs with an example #363 (@yannbf)

Authors: 4


v0.13.0 (Fri Aug 04 2023)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 3


v0.12.0 (Thu Jul 27 2023)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 5


v0.11.0 (Tue Jun 20 2023)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 6


v0.10.0 (Mon Apr 03 2023)

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation

Authors: 9


v0.9.4 (Wed Feb 01 2023)

πŸ› Bug Fix

Authors: 3


v0.9.3 (Fri Jan 20 2023)

πŸ› Bug Fix

Authors: 2


v0.9.2 (Tue Dec 20 2022)

πŸ› Bug Fix

Authors: 1


v0.9.1 (Mon Nov 21 2022)

πŸ› Bug Fix

Authors: 3


v0.9.0 (Wed Oct 12 2022)

πŸš€ Enhancement

πŸ› Bug Fix

πŸ“ Documentation

  • Docs: update coverage section now that the addon supports Vite #205 (@yannbf)

Authors: 4


v0.8.0 (Fri Oct 07 2022)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 3


v0.7.2 (Fri Sep 16 2022)

πŸ› Bug Fix

Authors: 4


v0.7.1 (Tue Sep 06 2022)

πŸ› Bug Fix

πŸ“ Documentation

Authors: 4


v0.7.0 (Fri Aug 26 2022)

Release Notes

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!


πŸš€ Enhancement

Authors: 1


v0.6.4 (Fri Aug 26 2022)

Release Notes

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


πŸ› Bug Fix

πŸ“ Documentation

  • Add remark regarding different coverage providers #180 (@yannbf)

Authors: 1


v0.6.3 (Wed Aug 24 2022)

Release Notes

Support storyStoreV7 in coverage check (#177)

This release fixes an issue where the coverage check was not working for projects using storyStoreV7.


πŸ› Bug Fix

  • Support storyStoreV7 in coverage check #177 (@yannbf)

Authors: 1


v0.6.2 (Wed Aug 24 2022)

Release Notes

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!


πŸ› Bug Fix

  • feat: turn Jest into an internal dependency #175 (@yannbf)

Authors: 1


v0.6.1 (Tue Aug 23 2022)

Release Notes

support Storybook 7.0 root selector (#172)

Feature:

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


πŸ› Bug Fix

Authors: 1


v0.6.0 (Tue Aug 23 2022)

Release Notes

fix --watch cli option (#168)

Fixes

The --watch flag was previously not working, and now it's fixed.

feat: throw error on unconfigured coverage when running with --coverage (#166)

Features

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)

Features

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)

Features

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


πŸš€ Enhancement

πŸ› Bug Fix

Authors: 2


v0.5.0 (Mon Jul 18 2022)

Release Notes

Replace is-localhost-ip with can-bind-to-host (#144)

Features

This release replaces an internal dependency is-localhost-ip with can-bind-to-host due to a licensing issue in can-bind-to-host.


πŸš€ Enhancement

Authors: 2


v0.4.0 (Tue Jul 12 2022)

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 4


v0.3.0 (Fri Jun 24 2022)

Release Notes

Support code coverage (#120)

Support code coverage (#120)


πŸš€ Enhancement

πŸ› Bug Fix

  • Improve code coverage for coverage merging #130 (@yannbf)

Authors: 1


v0.2.0 (Tue Jun 21 2022)

Release Notes

feat: provide global getStoryContext utility (#125)


πŸš€ Enhancement

  • feat: provide global getStoryContext utility #125 (@yannbf)

πŸ› Bug Fix

πŸ“ Documentation

Authors: 3


v0.1.1 (Wed May 25 2022)

πŸ› Bug Fix

πŸ“ Documentation

Authors: 2


v0.1.0 (Thu May 19 2022)

Release Notes

fix: Support Storybook 6.5 (#107)

Breaking change πŸ’₯

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)


πŸš€ Enhancement

Authors: 3


v0.0.8 (Thu Apr 28 2022)

πŸ› Bug Fix

πŸ“ Documentation

  • Document limitation for .mdx stories #102 (@IanVS)

Authors: 3


v0.0.7 (Fri Apr 22 2022)

πŸ› Bug Fix

Authors: 2


v0.0.6 (Tue Apr 12 2022)

πŸ› Bug Fix

  • Log a warning if you try and run against a lazy-compiled storybook #90 (@tmeasday)

Authors: 2


v0.0.5 (Thu Apr 07 2022)

πŸ› Bug Fix

πŸ”© Dependency Updates

Authors: 3


v0.0.4 (Wed Feb 23 2022)

πŸ› Bug Fix

  • fix: use correct import in generated test #65 (@yannbf)

Authors: 1


v0.0.3 (Wed Feb 23 2022)

πŸ› Bug Fix

Authors: 2


v0.0.2 (Thu Feb 03 2022)

πŸ› Bug Fix

πŸ“ Documentation

  • docs(README): add section about jest #29 (@yannbf)

Authors: 2


v0.0.1 (Thu Jan 06 2022)

πŸ› Bug Fix

⚠️ Pushed to main

Authors: 2