storeScreenshot
storeScreenshot(
storage,projectId,data):Promise<string>
Defined in: packages/core/src/utils/screenshot-store.ts:14
Store a screenshot under the SHA-256 of its bytes and return its path.
An unchanged story renders the same bytes build after build, so the object usually exists already and nothing is uploaded. Snapshots and baselines then point at the same object, and identical paths mean identical pixels (the diff can be skipped without reading either image).
Parameters
Section titled “Parameters”storage
Section titled “storage”projectId
Section titled “projectId”string
Buffer
Returns
Section titled “Returns”Promise<string>