Module: apps/cursorless-vscode-e2e/endToEndTestSetup
Functions
endToEndTestSetup
▸ endToEndTestSetup(suite
): Object
Parameters
Name | Type |
---|---|
suite | Suite |
Returns
Object
Name | Type |
---|---|
getSpy | () => undefined | SpyIDE |
Defined in
apps/cursorless-vscode-e2e/endToEndTestSetup.ts:20
sleepWithBackoff
▸ sleepWithBackoff(ms
): Promise
<void
>
Sleep function for use in tests that will be retried. Doubles the amount of time it sleeps each time a test is run, starting from {@link ms} / 4.
If the developer used the update fixtures launch config, we sleep for {@link ms} * 2 every time so that they don't get spurious updates to fixtures due to not sleeping enough.
Parameters
Name | Type | Description |
---|---|---|
ms | number | The baseline number of milliseconds to sleep. |
Returns
Promise
<void
>
A promise that will resolve when the sleep is over
Defined in
apps/cursorless-vscode-e2e/endToEndTestSetup.ts:59