Running the tests doesn't check the result of the worker based pdf processing code. This should be the case.

const basicApiFileName = "basicapi.pdf";
  const basicApiFileLength = 105779; 
  const basicApiGetDocumentParams = buildGetDocumentParams(basicApiFileName);
  let CanvasFactory;
  beforeAll(function () {
    CanvasFactory = new DefaultCanvasFactory();
  });
  afterAll(function () {
    CanvasFactory = null;
  });
  function waitSome(callback) {
    const WAIT_TIMEOUT = 10;
    setTimeout(function () {
      callback();
    }, WAIT_TIMEOUT);
  }
  describe("getDocument", function () {
    it("creates pdf doc from URL-string", async function () {
      const urlStr = TEST_PDFS_PATH + basicApiFileName;
      const loadingTask = getDocument(urlStr);
      expect(loadingTask instanceof PDFDocumentLoadingTask).toEqual(true);
      const pdfDocument = await loadingTask.promise;
      expect(typeof urlStr).toEqual("string");
      expect(pdfDocument instanceof PDFDocumentProxy).toEqual(true);
      expect(pdfDocument.numPages).toEqual(3);
      await loadingTask.destroy();
    });
    it("creates pdf doc from URL-object", async function () {
      if (isNodeJS) {
        pending("window.location is not supported in Node.js.");