fix(client): get jquery from cdn (#44421)

* fix: ensures jquery exists for those challenges

For tests frame-runner.js imports jquery, but jquery challenges always
need it

* Revert "Revert "fix: only include frame-runner when running tests (#44337)" (#44419)"

This reverts commit c19bf504b8.
This commit is contained in:
Oliver Eyton-Williams
2022-01-07 11:42:27 +01:00
committed by GitHub
parent fee0ac3846
commit 87f5cff3cd
4 changed files with 20 additions and 12 deletions

View File

@ -577,11 +577,14 @@ async function createTestRunner(
solutionFiles
);
const { build, sources, loadEnzyme } = await buildChallenge({
challengeFiles,
required,
template
});
const { build, sources, loadEnzyme } = await buildChallenge(
{
challengeFiles,
required,
template
},
{ usesTestRunner: true }
);
const code = {
contents: sources.index,