Commit fd201e0
doc: add guides on writing tests involving promises
Mention `common.crashOnUnhandledRejection()` and wrapping the
handlers in `common.mustCall()` or `common.mustNotCall()`.
PR-URL: #20988
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4cd4420 commit fd201e0Copy full SHA for fd201e0
File tree
Expand file treeCollapse file tree
1 file changed
+31
-0
lines changedOpen diff view settings
Filter options
- doc/guides
Expand file treeCollapse file tree
1 file changed
+31
-0
lines changedOpen diff view settings
Collapse file
doc/guides/writing-tests.md
Copy file name to clipboardExpand all lines: doc/guides/writing-tests.md+31Lines changed: 31 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
226 | 257 | |
227 | 258 | |
228 | 259 | |
|
0 commit comments