(error)
| 1062 | }; |
| 1063 | |
| 1064 | #cancel(error) { |
| 1065 | if (this.endTime !== null || this.error !== null) { |
| 1066 | return; |
| 1067 | } |
| 1068 | |
| 1069 | this.fail(error || |
| 1070 | new ERR_TEST_FAILURE( |
| 1071 | 'test did not finish before its parent and was cancelled', |
| 1072 | kCancelledByParent, |
| 1073 | ), |
| 1074 | ); |
| 1075 | this.cancelled = true; |
| 1076 | this.abortController.abort(); |
| 1077 | } |
| 1078 | |
| 1079 | computeInheritedHooks() { |
| 1080 | if (this.parent.hooks.beforeEach.length > 0) { |