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

expect(opListAnnotEnable.lastChunk).toEqual(true);
      const opListAnnotEnableForms = await pdfPage.getOperatorList({
        annotationMode: AnnotationMode.ENABLE_FORMS,
      });
      expect(opListAnnotEnableForms.fnArray.length).toBeGreaterThan(40);
      expect(opListAnnotEnableForms.argsArray.length).toBeGreaterThan(40);
      expect(opListAnnotEnableForms.lastChunk).toEqual(true);
      const opListAnnotEnableStorage = await pdfPage.getOperatorList({
        annotationMode: AnnotationMode.ENABLE_STORAGE,
      });
      expect(opListAnnotEnableStorage.fnArray.length).toBeGreaterThan(170);
      expect(opListAnnotEnableStorage.argsArray.length).toBeGreaterThan(170);
      expect(opListAnnotEnableStorage.lastChunk).toEqual(true);
      
      expect(opListAnnotDisable.fnArray.length).toBeLessThan(
        opListAnnotEnableForms.fnArray.length
      );
      expect(opListAnnotEnableForms.fnArray.length).toBeLessThan(
        opListAnnotEnable.fnArray.length
      );
      expect(opListAnnotEnable.fnArray.length).toBeLessThan(
        opListAnnotEnableStorage.fnArray.length
      );
      await loadingTask.destroy();
    });
    it("gets document stats after parsing page", async function () {
      const stats = await page.getOperatorList().then(function () {
        return pdfDocument.getStats();
      });
      const expectedStreamTypes = {};