Create a new root scope (usually for testing purposes). If there is an
existing root scope, it is ended first. The new root inherits the previous
root scope's .asyncCatch() handler, if it
had one. (Otherwise, the new root is configured to convert async errors into
unhandled promise rejections by default.)
If your project customizes the root scope in some way(s), you will
probably want a function to do that, so you can use it both in tests and at
runtime. (e.g. myInit(newRoot()) in tests, and myInit(root) at runtime.)
Create a new root scope (usually for testing purposes). If there is an existing root scope, it is ended first. The new root inherits the previous root scope's
.asyncCatch()handler, if it had one. (Otherwise, the new root is configured to convert async errors into unhandled promise rejections by default.)