bUnit tests all pass locally but one test always fails in the pipeline - DevExpress #1248
-
Hi, I have unit tests for a component utilizing dev express. All the tests pass locally, however one test is always flakey on the Azure DevOps pipeline. Has anyone else run into this? I
The solution to this would be to setup JS interop to handle that error, but I don't know how to as
throws an error
Edit: Works, but is this the best approach? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In short, I think your approach looks alright. There is also the option to just set JSInterup mode to loose, e.g. You can learn more here: https://bunit.dev/docs/test-doubles/emulating-ijsruntime.html |
Beta Was this translation helpful? Give feedback.
In short, I think your approach looks alright.
There is also the option to just set JSInterup mode to loose, e.g.
JSInterop.Mode = JSRuntimeMode.Loose;
You can learn more here: https://bunit.dev/docs/test-doubles/emulating-ijsruntime.html