feat: make editable code available in tests
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
6e091a7cdb
commit
68b223322f
@ -432,7 +432,10 @@ async function createTestRunner(challenge, solution, buildChallenge) {
|
||||
required,
|
||||
template
|
||||
});
|
||||
const code = sources && 'index' in sources ? sources['index'] : '';
|
||||
const code = {
|
||||
contents: sources.index,
|
||||
editableContents: sources.editableContents
|
||||
};
|
||||
|
||||
const evaluator = await (buildChallenge === buildDOMChallenge
|
||||
? getContextEvaluator(build, sources, code, loadEnzyme)
|
||||
|
Reference in New Issue
Block a user