bUnit-dev / bUnit

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 parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
https://bunit.dev
MIT License
1.11k stars 104 forks source link

Update emulating-ijsruntime.md #1487

Closed BasicExp closed 1 month ago

BasicExp commented 1 month ago

Adding doc for what I think is likely to be a common use case for testing methods that return IJSObjectReference instances.

It took me quite a while to figure out the right approach to this specific scenario, and I felt it might warrant sparing someone else the lost time.

BasicExp commented 1 month ago

@dotnet-policy-service agree company="Croptimistic Technology Inc"

linkdotnet commented 1 month ago

Perfect - thanks for the PR @BasicExp Much appreciated

linkdotnet commented 1 month ago

@egil stable doesn't have our macos fix from main it seems. Therefore you have to "force" merge the PR