INNER CODE UNIT · TypeScript

file

SveltyCMS/SveltyCMS · scripts/benchmark-matrix/index.ts:566

      const file = testFiles.find((f) => getTestName(f) === testName);
      if (file && !orderedTests.includes(file)) {
        orderedTests.push(file);
      }
    }
  }

  // Add any remaining ungrouped tests at the end
  for (const file of testFiles) {
    if (!allGroupedNames.has(getTestName(file))) {
      orderedTests.push(file);
    }
  }

  // 🛡️ Only GROUPS drive execution — a benchmark file that exists in
  // tests/benchmarks/ but is missing from GROUPS would silently never run (and
  // `--only=<new-test>` would report 0 passed/0 failed). Append the leftovers as a
  // final group so matrix coverage matches the directory.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…