Skip to content

1.4.15

Choose a tag to compare

@github-actions github-actions released this 18 Dec 14:47
2c1a1c1

This release reintroduces Stub<TComponent> and related back into the main library, so the "preview" library bunit.web.mock is already obsolete.

Big shout out to bUnit's sponsors who helped make this release happen.

The higher tier sponsors are:

Other sponsors are:

Added

  • Add ComponentFactories extensions method that makes it easy to register an instance of a replacement component. By @egil.
  • Add ability to pass ServiceProviderOptions to TestServiceProvider through property to allow users to customize the service provider. By @rodolfograve.

Fixed

  • Changed SetParametersAndRender such that it rethrows any exceptions thrown by the component under tests SetParametersAsync method. Thanks to @bonsall for reporting the issue. Fixed by @egil.
  • onclick on a button inside a form will raise the onsubmit event for the form itself. Reported by [@egil]. Fixed by @linkdotnet.
  • Only forms are allowed to have a onsubmit event handler. When onsubmit is invoked from a non-form element results in an exception. Fixed by @linkdotnet.