@wpkernel/test-utils v0.12.6-beta.3
@wpkernel/test-utils / withWorkspace
Function: withWorkspace()
ts
function withWorkspace(run, options): Promise<void>;Creates and manages a temporary workspace for integration tests.
Parameters
run
(workspace) => Promise<void>
The test function to execute within the workspace. It receives the workspace path as an argument.
options
WorkspaceOptions = {}
Configuration options for the workspace.
Returns
Promise<void>
A Promise that resolves when the test and cleanup are complete.
