3 ms·
I think jest uses a JSDOM environment per default in order to stimulate certain APIs. Might be sensible to compare the node environment to the others if you do
by leipert 6y ago
I think jest uses a JSDOM environment per default in order to stimulate certain APIs.
Might be sensible to compare the node environment to the others if you do not need browser APIs in your tests. And this might be the reason for picking it, frameworks just working g out of the Box.
Personally it doesn’t matter too much as we have too many tests to run all of them locally all the time anyhow.
- Something1234 6y agoWhat if we had the concept of annotations in JavaScript? That way I could ask for the dom environment if I needed it in my test or if I don't reject it entirely.