Files
freeCodeCamp/tools/scripts/test_challenges.sh
2026-01-30 22:16:25 +05:30

15 lines
327 B
Bash
Executable File

#!/bin/bash
echo "Enter the ids of the challenges you wish to test (separated by commas) and hit enter."
read -r input
IFS=',' challengeIDS=($input)
for challengeID in "${challengeIDS[@]}";
do
challengeID="$(tr -d ' ' <<< "$challengeID")"
FCC_CHALLENGE_ID=$challengeID pnpm turbo -F=@freecodecamp/curriculum test
done