Lines Matching refs:error
327 this.error = null;
434 // that the error can be properly reported.
463 const error = this.outerSignal?.reason || new AbortError('The test was aborted');
464 error.failureType = kAborted;
465 this.#cancel(error);
468 #cancel(error) {
473 this.fail(error ||
496 if (this.error !== null) {
502 this.error = err;
566 if (hook.error) {
567 throw hook.error;
571 const error = new ERR_TEST_FAILURE(`failed running ${hook} hook`, kHookFailure);
572 error.cause = isTestFailureError(err) ? err.cause : err;
573 throw error;
614 // This test is using legacy Node.js error first callbacks.
644 try { await afterEach(); } catch { /* test is already failing, let's ignore the error */ }
645 try { await after(); } catch { /* Ignore error. */ }
815 details.error = this.error;
847 if (this.error && !this.outerSignal?.aborted) {
849 this.error = null;
865 const { error, loc, parentTest: parent } = this;
868 if (error && parent !== null &&
871 if (isTestFailureError(error)) {
872 error.failureType = kHookFailure;
878 error,
945 const subtests = this.skipped || this.error ? [] : this.subtests;