code: function cleanResultsStatus() {
          // remove criterias and spec if no criteria in spec
          for (const spec in mergedResults.specs) {
              if (!(spec in parseResults.specs.specTable) || Object.keys(parseResults.specs.specTable[spec].criteria).length === 0) {
                  delete mergedResults.specs[spec];
              }
              else {
                  const parsedCriteria = parseResults.specs.specTable[spec].criteria;
                  const resultsCriteria = mergedResults.specs[spec];
                  for (const criteria in resultsCriteria) {
                      if (!(criteria in parsedCriteria)) {
                          delete mergedResults.specs[spec][criteria];
                      }
                  }
              }
          }
          for (const testcase in mergedResults.testcases) {
              if (!(testcase in parseResults.testcases.testcaseTable)) {
                  delete mergedResults.testcases[testcase];
              }
          }
          // add criteria
          for (const spec in parseResults.specs.specTable) {
              if (!(spec in mergedResults.specs)) {
                  mergedResults.specs[spec] = {};
              }
              const parsedCriteria = parseResults.specs.specTable[spec].criteria;
              const resultsCriteria = mergedResults.specs[spec];
              for (const criteria in parsedCriteria) {
                  if (!(criteria in resultsCriteria)) {
                      mergedResults.specs[spec][criteria] = {
                          dateTime,
                          status: 'unknown',
                          resultsFolder: undefined,
                      };
                      if (criteria in criteriaAnalysis.specs[spec].manual) {
                          mergedResults.specs[spec][criteria].manual = true;
                      }
                  }
              }
          }
          for (const testcase in parseResults.testcases.testcaseTable) {
              if (!(testcase in mergedResults.testcases)) {
                  mergedResults.testcases[testcase] = {
                      dateTime,
                      status: 'unknown',
                      resultsFolder: undefined,
                  };
              }
          }
          fs.writeFileSync(mergedResultsPath, JSON.stringify(mergedResults), { encoding: 'utf8' });
      }
docs: Removes specs and testcases from mergedResults that are no longer defined.
  Adds defined specs and testcases that have no status yet to mergedResults.