fix(specs) Synchronously render test reporting gui for better stack traces

This commit is contained in:
Juan Tejada 2017-02-10 12:19:18 -08:00
parent ad88dc3fe8
commit 0638b843b6

View file

@ -229,22 +229,20 @@ update = =>
/>
ReactDOM.render(component, el)
updateSoon = _.debounce(update, 125)
module.exports =
reportRunnerStarting: (runner) ->
specs = runner.specs()
startedAt = Date.now()
updateSoon()
update()
reportRunnerResults: (runner) ->
updateSoon()
update()
reportSuiteResults: (suite) ->
reportSpecResults: (spec) ->
spec.endedAt = Date.now()
updateSoon()
update()
reportPlainTextSpecResult: (spec) ->
str = ""
@ -265,7 +263,7 @@ module.exports =
str += "\n\n"
plainTextOutput = plainTextOutput + str
updateSoon()
update()
reportSpecStarting: (spec) ->
updateSoon()
update()