Closed pmeems closed 3 months ago
Since version 4.9.2, we've added a configuration to manage JavaScript loading. See #2388
In your unit tests, you must inject this LibraryConfiguration
service:
Services.AddSingleton( new LibraryConfiguration()
{
CollocatedJavaScriptQueryString = null,
});
Thank you. I completely missed that we needed to add these lines, now.
I'll close this issue.
🐛 Bug Report
We have an application made with the default Blazor template. In this application, we have the default Counter and Weather pages. We only added FluentUI, some styling, and a test project using xUnit and bUnit.
When building the solution everything is OK, but when running the unit tests we get this error:
Something similar was reported in https://github.com/microsoft/fluentui-blazor/issues/2425 and that issue should have been solved in v4.9.3.
We're now using v4.9.3 but we still get this error.
Our dependencies:
The full exception:
💻 Repro or Code Sample
🤔 Expected Behavior
When using Microsoft.FluentUI.AspNetCore.Components v4.9.1 we don't get this error. We expect our code to run with the latest version of Microsoft.FluentUI. If we need to change our code we expect a detailed explanation what to change.
💁 Possible Solution
I don't have a fix, but I expect a similar fix as done for #2425 needs to be done.
🔦 Context
We use floating version so we always use the latest versions of the packages. For Microsoft.FluentUI we now need to pin the version on 4.9.1 to get is working again.
🌍 Your Environment
We experience this issue locally on our Window pc with Visual Studio v17.10 and also on our Azure Build Agent (Windows).