Explain injectSharedRendererTestsStandalone

This commit is contained in:
Daniel Imms
2023-09-14 12:35:12 -07:00
parent 66c8e33b47
commit 2f9439b690
+5
View File
@@ -1150,6 +1150,11 @@ export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void
});
}
/**
* Injects shared renderer tests where it's required to re-initialize the terminal for each test.
* This is much slower than just calling `Terminal.reset` but testing some features needs this
* treatment.
*/
export function injectSharedRendererTestsStandalone(ctx: ISharedRendererTestContext): void {
test.beforeEach(async () => {
// Recreate terminal