@wpkernel/e2e-utils v0.12.6-beta.3
@wpkernel/e2e-utils / withIsolatedWorkspace
Function: withIsolatedWorkspace()
Creates a temporary, isolated workspace for E2E tests.
This utility sets up a clean directory for each test, ensuring that tests do not interfere with each other's file system state.
Call Signature
ts
function withIsolatedWorkspace<TResult>(options, callback): Promise<TResult>;Run a callback against a disposable workspace rooted on disk.
Type Parameters
TResult
TResult
Parameters
options
callback
WithWorkspaceCallback<TResult>
Returns
Promise<TResult>
Call Signature
ts
function withIsolatedWorkspace<TResult>(callback): Promise<TResult>;Run a callback against a disposable workspace rooted on disk.
Type Parameters
TResult
TResult
Parameters
callback
WithWorkspaceCallback<TResult>
Returns
Promise<TResult>
