fix(client): remove JS comments from user code for tests (#41873)

* Removes comments in js challanges by default

* fix local-scope-and-functions test regex

* fix all languages

* revert language changes

* removed unnecessary removeJSComments from challenges

* fix challanges in other languages

* removed removeJSComments from all challanges
This commit is contained in:
Evgeny Klimenchenko
2021-04-28 16:18:54 +01:00
committed by GitHub
parent ebe8f99345
commit db369fbed1
47 changed files with 103 additions and 149 deletions

View File

@ -520,11 +520,17 @@ async function createTestRunner(
files[key].editableContents = solution[key].editableContents;
});
const { build, sources, loadEnzyme } = await buildChallenge({
files,
required,
template
});
const { build, sources, loadEnzyme } = await buildChallenge(
{
files,
required,
template
},
{
removeComments: challenge.removeComments
}
);
const code = {
contents: sources.index,
editableContents: sources.editableContents