Home > harper.js > WorkerLinter > loadWeirpackFromBlob

WorkerLinter.loadWeirpackFromBlob() method

Load a Weirpack from a Blob via the worker thread.

Returns undefined when the tests pass and the pack is imported, otherwise forwards the failure report back to the caller.

Signature:

loadWeirpackFromBlob(blob: Blob): Promise<WeirpackTestFailures | undefined>;

Parameters

Parameter

Type

Description

blob

Blob

Returns:

Promise<WeirpackTestFailures | undefined>