fix(external-curriculum): add full-stack cert to external curriculum (#59395)

This commit is contained in:
Sem Bauke
2025-03-24 15:01:19 +01:00
committed by GitHub
parent b154ca52cc
commit 176123b803
3 changed files with 10 additions and 7 deletions
@@ -81,13 +81,7 @@ ${result.error.message}`);
({ dashedName }) => dashedName
);
const isUpcoming = ['full-stack-developer'];
// TODO: this is a hack, we should have a single source of truth for the
// list of superblocks that are available.
const publicSuperBlockNames = Object.values(SuperBlocks).filter(
x => !isUpcoming.includes(x)
);
const publicSuperBlockNames = Object.values(SuperBlocks);
expect(dashedNames).toEqual(expect.arrayContaining(publicSuperBlockNames));
expect(Object.keys(orderedSuperBlockInfo)).toHaveLength(
@@ -43,6 +43,7 @@ export const orderedSuperBlockInfo = [
{ dashedName: SuperBlocks.TheOdinProject, public: true },
{ dashedName: SuperBlocks.RespWebDesign, public: true },
{ dashedName: SuperBlocks.PythonForEverybody, public: true },
{ dashedName: SuperBlocks.FullStackDeveloper, public: false },
{ dashedName: SuperBlocks.JsAlgoDataStructNew, public: false },
{ dashedName: SuperBlocks.FrontEndDevLibs, public: false },
{ dashedName: SuperBlocks.DataVis, public: false },
@@ -25,6 +25,14 @@ const blockSchema = Joi.object({}).keys({
required: Joi.array(),
superBlock: Joi.string(),
blockLayout: Joi.string(),
blockType: Joi.valid(
'lecture',
'workshop',
'lab',
'review',
'quiz',
'exam'
),
challengeOrder: Joi.array().items(
Joi.object({}).keys({
id: Joi.string(),