/* istanbul ignore next */
What does this line of code do?
Some things are hard to test, so
/* istanbul ignore next */ tells
istanbul to skip and not include the next thing in your source code when calculating code coverage for your project.
It's a way to exclude code in your project in code coverage reports.