We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crashOnUnhandledRejection()
1 parent 4848862 commit dfcefd6Copy full SHA for dfcefd6
test/README.md
@@ -174,6 +174,13 @@ A stream to push an array into a REPL
174
175
Blocks for `time` amount of time.
176
177
+### crashOnUnhandledRejection()
178
+
179
+Installs a `process.on('unhandledRejection')` handler that crashes the process
180
+after a tick. This is useful for tests that use Promises and need to make sure
181
+no unexpected rejections occur, because currently they result in silent
182
+failures.
183
184
### ddCommand(filename, kilobytes)
185
* return [<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)
186
0 commit comments