If you're using Q promises, you can include this function in your unit-tests. It will register a exit-handler that checks if any unhandled rejected promises exist and prints error messages for each of those. See Debug-Mode to warn for unused promises #625 for details.
-
Notifications
You must be signed in to change notification settings - Fork 0
nknapp/q-debug-mode
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Activates long-stack-traces in Q and warns about unhandled reasons on process exit
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published