Skip to main content

Module artifacts

Module artifacts 

Source
Expand description

ArtifactsJs: wrapper that gives scripts a dedicated write-scoped directory for outputs like screenshots, PDFs, traces, downloaded bodies.

Separate from fs (which is rooted at script_root and is primarily for reading fixtures + importing modules). artifacts is rooted at artifacts_root and is primarily for writing — keeps outputs out of your source tree.

Same sandbox rules as fs: absolute paths, .., and symlink escapes are rejected. Names are resolved relative to the artifacts root.

Structs§

ArtifactsJs