I'm trying to create some unit tests and was wondering if there was a way to fake or change document.visibilityState to something else like "prerender" or "hidden" or "visible" randomly with something like jsdom or pretender or something else? If so could I have a code example please?
Aucun commentaire:
Enregistrer un commentaire