src/cli/commands/tests.js
/**
 * Create an array of phases as range to target phase
 *
 * @param {number} toPhase Phase to generate range to
 * @return {string[]} Phase range
 */
Create an array of phases as range to target phase
@param {number} toPhase Phase to generate range to
@return {string[]} Phase range
Create an array of phases as range to target phase @param { number } toPhase Phase to generate range to @return { string [] } Phase range
function createPhaseRange(toPhase) {
  return Array(toPhase)
    .fill("")
    .map((_, index) => `phase-${String(index + 1).padStart(2, "0")}`);
}
function createPhaseRange ( toPhase ) { return Array ( toPhase ) . fill ( "" ) . map ( ( _ , index ) => ` ${ String ( index + 1 ) . padStart ( 2 , "0" ) } ` ) ; }
Create an array of phases as range to target phase
 @param {number} toPhase Phase to generate range to
 @return {string[]} Phase range
Create an array of phases as range to target phase @param { number } toPhase Phase to generate range to @return { string [] } Phase range