From c11b4dd4d24ab1b69006ec6860bb7ec7eaa7915d Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Sat, 14 Feb 2026 19:42:35 +0100 Subject: [PATCH] fix(curriculum): catch lessons without challenge files (#65871) --- curriculum/src/test/test-challenges.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/curriculum/src/test/test-challenges.js b/curriculum/src/test/test-challenges.js index aee153c7bc9..9db5891a9df 100644 --- a/curriculum/src/test/test-challenges.js +++ b/curriculum/src/test/test-challenges.js @@ -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;