HTML challenges do not warn users or run tests when there are syntax errors #49018
Labels
platform: learn
UI side of the client application that needs familiarity with React, Gatsby etc.
status: on the roadmap
Long term plans and features.
Describe the bug
Syntax errors in HTML and multifile challenges stop the tests from running.
To Reproduce
Steps to reproduce the behavior:
<script> ) </script>
Expected behavior
The tests should still run, even with broken syntax. Otherwise challenge creators are overly limited in the kinds of lessons they can write.
This is trickier to do for HTML challenges than pure JS ones, since we first build the frame and then run the test code in it. When there's a syntax error, that's not possible. Instead we will probably need to create a separate environment for the test to run in. A JS test runner, perhaps?
@naomi-lgbt is there anything I missed?
The text was updated successfully, but these errors were encountered: