Skip to content

Javascript integration #851

Answered by egil
MichaelFack1 asked this question in Q&A
Sep 5, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

As @linkdotnet says, it's not possible and will probably not every be, since that would require us to run a full JavaScript/browser runtime as well, and in that case you might as well just use Playwright or Selenium.

We are dependent on a 3rd party library and have some functionality we would like under unit test that duo the 3rd party requires javascript to be run.

Is that 3rd party lib a JavaScript lib or a Blazor lib?

If it's the first, we recommend setting up the JSInterop in bUnir to emulate the responses from the JS lib. Some also wrote their own JS wrapper around 3rd party js libs, so they have a stable facade to call. That will make upgrades to the 3rd party lib more safe, and a…

Replies: 2 comments 6 replies

Comment options

linkdotnet
Sep 5, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@MichaelFack1
Comment options

Comment options

You must be logged in to vote
5 replies
@MichaelFack1
Comment options

@egil
Comment options

egil Sep 5, 2022
Maintainer

@Andras-Csanyi
Comment options

@egil
Comment options

egil Dec 10, 2022
Maintainer

@linkdotnet
Comment options

linkdotnet Dec 10, 2022
Maintainer Sponsor

Answer selected by MichaelFack1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants