INNER CODE UNIT · TypeScript

allGroupedNames

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

  const allGroupedNames = new Set(GROUPS.flatMap((g) => g.tests));
  const orderedTests: string[] = [];

  for (const group of GROUPS) {
    for (const testName of group.tests) {
      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);
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…