Polyman Documentation - v2.2.2
    Preparing search index...

    Function filterTestsByRange

    • Filters test files by a numerical range. Looks for files named like "test1.txt", "test2.txt", etc.

      Parameters

      • testFiles: string[]

        Array of test file names

      • OptionaltestBegin: number

        Start of range (inclusive), optional

      • OptionaltestEnd: number

        End of range (inclusive), optional

      Returns string[]

      Filtered array of test files

      const allTests = ['test1.txt', 'test2.txt', 'test3.txt'];
      const filtered = filterTestsByRange(allTests, 1, 2);
      // Returns: ['test1.txt', 'test2.txt']