fix(curriculum): catch lessons without challenge files (#65871)
Some checks failed
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled

This commit is contained in:
Oliver Eyton-Williams 2026-02-14 19:42:35 +01:00 committed by GitHub
parent ff277a82dc
commit c11b4dd4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,6 +219,13 @@ async function populateTestsForLang({ lang, challenges, meta }) {
return;
}
it('Has challenge files', function () {
expect(
challenge.challengeFiles,
`challengeFiles should exist. Check that the challenge has a "seed" section in the markdown file.`
).toBeDefined();
});
// The python tests are (currently) slow, so we give them more time.
const timePerTest =
challengeType === challengeTypes.python ? 10000 : 5000;