The jsdom version restriction is at "^6.1.0". However, given that you are relying on private jsdom APIs which could change in any patch release, this is not appropriate. Instead you should pin to a specific patch release (e.g. "6.1.0") and only do upgrades after verifying that the private API you are depending on has not been changed. (Or, you should stop poking around jsdom's internals.)