We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crashOnUnhandledRejection()
1 parent 780fa39 commit 3efaa8eCopy full SHA for 3efaa8e
test/README.md
@@ -186,6 +186,13 @@ doesn't have privileges to create symlinks (specifically
186
[SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx)).
187
On non-Windows platforms, this currently returns true.
188
189
+### crashOnUnhandledRejection()
190
+
191
+Installs a `process.on('unhandledRejection')` handler that crashes the process
192
+after a tick. This is useful for tests that use Promises and need to make sure
193
+no unexpected rejections occur, because currently they result in silent
194
+failures.
195
196
### ddCommand(filename, kilobytes)
197
* return [<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
198
0 commit comments