Class: UnexpectedMockedRunError
test.UnexpectedMockedRunError
Error which occurs when a mock action is ran but no mocked result were defined on the mock or their predicates does not match executed context.
Hierarchy
↳
UnexpectedMockedRunError
Constructors
constructor
• new UnexpectedMockedRunError(context
)
Parameters
Name | Type |
---|---|
context | any |
Overrides
Defined in
src/test/unexpectedMockedRunError.ts:10
Properties
cause
• Optional
cause: unknown
Inherited from
Defined in
website/node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.error.d.ts:24
context
• Readonly
context: any
Defined in
src/test/unexpectedMockedRunError.ts:8
message
• message: string
Inherited from
Defined in
website/node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1068
name
• name: string
Inherited from
Defined in
website/node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1067
stack
• Optional
stack: string
Inherited from
Defined in
website/node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts:1069