feat: add exam environment (#50356)

* feat: add exam environment

* fix: cypress

* fix: lint-ts

* fix: lint-js

* fix: codefactor

* fix: don't translate comments from new JS spreadsheet

* fix: more tests

* fix: challenge schema

* fix: external curriculum test?

* fix: add more comments
This commit is contained in:
Tom
2023-05-18 06:33:43 -05:00
committed by GitHub
parent df12c72f46
commit 4dfca3c560
38 changed files with 1223 additions and 39 deletions
+10 -4
View File
@@ -16,6 +16,7 @@ const codeAllyCert = 13;
const multifileCertProject = 14;
const theOdinProject = 15;
const colab = 16;
const exam = 17;
// individual exports
exports.backend = backend;
@@ -24,6 +25,7 @@ exports.backEndProject = backEndProject;
exports.pythonProject = pythonProject;
exports.codeAllyCert = codeAllyCert;
exports.colab = colab;
exports.exam = exam;
exports.challengeTypes = {
html,
@@ -43,7 +45,8 @@ exports.challengeTypes = {
codeAllyCert,
multifileCertProject,
theOdinProject,
colab
colab,
exam
};
exports.isFinalProject = challengeType => {
@@ -55,7 +58,8 @@ exports.isFinalProject = challengeType => {
challengeType === jsProject ||
challengeType === pythonProject ||
challengeType === codeAllyCert ||
challengeType === multifileCertProject
challengeType === multifileCertProject ||
challengeType === exam
);
};
@@ -82,7 +86,8 @@ exports.viewTypes = {
[codeAllyCert]: 'codeAlly',
[multifileCertProject]: 'classic',
[theOdinProject]: 'odin',
[colab]: 'frontend'
[colab]: 'frontend',
[exam]: 'exam'
};
// determine the type of submit function to use for the challenge on completion
@@ -106,5 +111,6 @@ exports.submitTypes = {
[codeAllyCert]: 'project.frontEnd',
[multifileCertProject]: 'tests',
[theOdinProject]: 'tests',
[colab]: 'project.backEnd'
[colab]: 'project.backEnd',
[exam]: 'exam'
};
@@ -37,6 +37,11 @@ const odin = path.resolve(
'../../src/templates/Challenges/odin/show.tsx'
);
const exam = path.resolve(
__dirname,
'../../src/templates/Challenges/exam/show.tsx'
);
const views = {
backend,
classic,
@@ -44,7 +49,8 @@ const views = {
frontend,
video,
codeAlly,
odin
odin,
exam
// quiz: Quiz
};