dispose method
Destroys the test case, returning a future that completes after disposed.
In most cases, it is preferable to use disposeAnyRunningTest
.
Implementation
Future<void> dispose() async {
await update();
// Remove the test bed's host element.
_rootComponentRef.location.parent!.remove();
_applicationRef.dispose();
if (isDevMode) {
debugClearComponentStyles();
}
activeTest = null;
}