Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Conversation

@mxschmitt
Copy link
Collaborator

@mxschmitt mxschmitt commented Jun 22, 2020

Changes:

  • With this change its in general not needed anymore to manual use the saveCoverage function.

@coveralls
Copy link

coveralls commented Jun 22, 2020

Pull Request Test Coverage Report for Build 146744638

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.0%

Totals Coverage Status
Change from base Build 146719839: 0.0%
Covered Lines: 60
Relevant Lines: 64

💛 - Coveralls

@mxschmitt mxschmitt marked this pull request as ready for review June 24, 2020 22:57
),
)
// wait until coverage data was sent successfully to the exposed function
await new Promise((resolve) => setTimeout(resolve, 10))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found no other way of doing that. By using a sleep of 10ms it should be enough to let the event loop handle to execute the beforeunload handling and its corresponding disk write.

@mxschmitt mxschmitt merged commit 147f810 into master Jun 25, 2020
@mxschmitt mxschmitt deleted the enhancement/coverage branch June 25, 2020 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants