fix: handle the sorting of transformed files (#44724)
* fix: handle the sorting of transformed files We can't use the ext property, since that is transformed, but the history is maintained. * test: make solutions polyVinyls for sorting * refactor: inline prepareChallenge * refactor: make solutions polys in getChallenges * fix: convert each solution to a poly * fix: skip empty solutions * fix: get challenge file history in client * refactor: stop calling isPoly from the client * fix: remove debug console.log * refactor: remove unnecessary sorting step
This commit is contained in:
committed by
GitHub
parent
b1fb6adc39
commit
cacc4eacd7
@ -43,7 +43,6 @@ const testEvaluator =
|
||||
const { getLines } = require('../../utils/get-lines');
|
||||
const { isAuditedCert } = require('../../utils/is-audited');
|
||||
|
||||
const { sortChallengeFiles } = require('../../utils/sort-challengefiles');
|
||||
const {
|
||||
getChallengesForLang,
|
||||
getMetaForBlock,
|
||||
@ -533,9 +532,7 @@ ${inspect(commentMap)}
|
||||
// TODO: the no-solution filtering is a little convoluted:
|
||||
const noSolution = new RegExp('// solution required');
|
||||
|
||||
const solutionsAsArrays = solutions.map(sortChallengeFiles);
|
||||
|
||||
const filteredSolutions = solutionsAsArrays.filter(solution => {
|
||||
const filteredSolutions = solutions.filter(solution => {
|
||||
return !isEmpty(
|
||||
solution.filter(
|
||||
challengeFile => !noSolution.test(challengeFile.contents)
|
||||
|
Reference in New Issue
Block a user