Answer the question
In order to leave comments, you need to log in
How to test functions with document.createRange in a node.js environment?
I'm trying to test a component that has document.createRange in one of its methods. Jest tells me that document.createRange is not a function. Actually, window.getSelection is also missing. Does anyone know how to solve this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question