feat(curriculum): add relational databases cert as upcoming change (#41658)

This commit is contained in:
Tom
2021-06-15 10:37:13 -05:00
committed by GitHub
parent ae0d34359a
commit 067761f2f6
30 changed files with 597 additions and 19 deletions

View File

@ -3,6 +3,7 @@ const crypto = require('crypto');
function createChallengeNode(challenge, reporter) {
// challengeType 11 is for video challenges (they only have instructions)
// challengeType 7 is for certificates (they only have tests)
// challengeType 12 is for CodeAlly/CodeRoad challenge
// TODO: either handle empty descriptions inside Gatsby OR ensure that
// description defaults to '' when creating challenges.
@ -12,7 +13,8 @@ function createChallengeNode(challenge, reporter) {
if (
typeof challenge.description !== 'string' &&
challenge.challengeType !== 11 &&
challenge.challengeType !== 7
challenge.challengeType !== 7 &&
challenge.challengeType !== 12
) {
reporter.warn(`