Replies: 2 comments
-
Looks like you are missing a SetVoidResult() call after your SetupVoid call, e.g.: JSInterop.SetupVoid("localStorage.setItem", "userName", testUser).SetVoidResult(); If you do not do this, the returned task you await in your component will never complete. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ill convert this to a discussion question and close this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
bUnitVersion: 1.7.7 - 1.9.8
when use JSInterop to mock js operation, the test will be blocked.


razor code as below
test code as below
Beta Was this translation helpful? Give feedback.
All reactions