mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Explain injectSharedRendererTestsStandalone
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user