mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-25 02:14:11 -05:00
feat(tools): create a bash testing script (#57218)
This commit is contained in:
14
tools/scripts/test_challenges.sh
Executable file
14
tools/scripts/test_challenges.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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 run test:curriculum
|
||||
done
|
||||
Reference in New Issue
Block a user