mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
fix(specs) Synchronously render test reporting gui for better stack traces
This commit is contained in:
parent
ad88dc3fe8
commit
0638b843b6
1 changed files with 5 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue