rename to unknownError
This commit is contained in:
parent
8ff2fc886c
commit
e4b1dc95dc
|
|
@ -289,8 +289,8 @@ class ExpectMetaInfoProxyHandler implements ProxyHandler<any> {
|
||||||
|
|
||||||
const step = testInfo._addStep(stepInfo);
|
const step = testInfo._addStep(stepInfo);
|
||||||
|
|
||||||
const reportStepError = (_error: unknown) => {
|
const reportStepError = (unknownError: unknown) => {
|
||||||
const jestError = _error instanceof Error ? _error : new Error(String(_error));
|
const jestError = unknownError instanceof Error ? unknownError : new Error(String(unknownError));
|
||||||
const error = isExpectError(jestError) ? new ExpectError(jestError, customMessage, stackFrames) : jestError;
|
const error = isExpectError(jestError) ? new ExpectError(jestError, customMessage, stackFrames) : jestError;
|
||||||
step.complete({ error });
|
step.complete({ error });
|
||||||
if (this._info.isSoft)
|
if (this._info.isSoft)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue