You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thank you for the great addons.
I wrote some logic inside the service-worker folder and now want to test it.
My first question is if it is possible to write unit tests for functions. After the build process I can no longer import and execute functions from my tests since they are bundled inside the sw.js file. Is there maybe a way to execute tests in the context of the service-worker or any other workarround?
What about integration tests? According to this medium post there seems to be a lot of ways to write integration tests. Is there any preferred way for this addon?
Thank you in advance
The text was updated successfully, but these errors were encountered:
Hey, thank you for the great addons.
I wrote some logic inside the service-worker folder and now want to test it.
My first question is if it is possible to write unit tests for functions. After the build process I can no longer import and execute functions from my tests since they are bundled inside the sw.js file. Is there maybe a way to execute tests in the context of the service-worker or any other workarround?
What about integration tests? According to this medium post there seems to be a lot of ways to write integration tests. Is there any preferred way for this addon?
Thank you in advance
The text was updated successfully, but these errors were encountered: