bUnit icon indicating copy to clipboard operation
bUnit copied to clipboard

bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass param...

Results 78 bUnit issues
Sort by recently updated
recently updated
newest added

In the latest version of Blazor E2E tests, the [KeyPressEventComponent](https://github.dev/dotnet/aspnetcore/blob/7abc99fced98d6e08fdca7b804278d39951c1cd9/src/Components/test/testassets/BasicTestApp/KeyPressEventComponent.razor#L19-L20) expects the event `onkeypress` to be listed as `keypress` in `KeyboardEventArgs.Type`. I think bUnit should set it automatically for the...

input needed
investigate

While there are several overloads of the `Add()` method having `Func callback` parameter, the ones accepting `Func callback` or `Func callback` are just missing - the non-async versions using `Action...

enhancement
good first issue
input needed
needs design

Lets investigate creating a "mocking" abstraction for JSInterop, such that 3rd party mocking libraries can be used instead of having a custom mocking library built into bUnit for JSInterop. The...

investigate
needs design
mocking

**Motivation:** Tests should be deterministic, and one of the biggest challenges with that is that the Renderer can asynchronous (re)render components while test code is being executed. This can lead...

help wanted
investigate

Right now, every time a new render tree is created during a test, the markup and DOM nodes are recreated. That causes some issues (#46, #47) and probably has an...

enhancement
help wanted

**Describe the bug** When a Razor component contains a `DynamicComponent` and its type gets changed in a click event, other elements with `@ref` element references lose their `ReferenceCaptureId` and they...

bug

Document the how native dependencies will work in a bUnit context. ------------ Original issue text: Components that use native dependencies cannot be rendered with bUnit. ### Simple example ([lifted from...

documentation
good first issue

**Is the feature request related to a problem? Please elaborate.** The `SetupModule` extension for setting up an imported JS module only supports `IJSObjectReference` but you can also import modules of...

documentation

A generic `Setup(InvocationMatcher)` method is needed, that does not specify the return type at compile time is needed, to make it easy for folks to set up a "catch all...

enhancement

To ensure that semantic versionning is followed and the right parts of the version string is incremented when API changes, lets add the Microsoft.CodeAnalysis.PublicApiAnalyzers analyzer to the project to keep...

enhancement