MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getChallenge

Function getChallenge

tools/challenge-helper-scripts/utils.ts:281–285  ·  view source on GitHub ↗
(challengeId: string)

Source from the content-addressed store, hash-verified

279};
280
281const getChallenge = (challengeId: string): Challenge => {
282 const challengePath = path.join(getProjectPath(), `${challengeId}.md`);
283 const challenge = parseMDSync(challengePath) as Challenge;
284 return challenge;
285};
286
287const validateBlockName = (
288 block: string,

Callers 3

insertStepFunction · 0.85
createNextTaskFunction · 0.85
insertChallengeFunction · 0.85

Calls 1

getProjectPathFunction · 0.85

Tested by

no test coverage detected