@loopback/docs
Version:
Documentation for LoopBack 4
32 lines (20 loc) • 748 B
Markdown
lang: en
title: 'API docs: testlab.stubhandlercontext'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.testlab.stubhandlercontext.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/testlab](./testlab.md) > [stubHandlerContext](./testlab.stubhandlercontext.md)
## stubHandlerContext() function
<b>Signature:</b>
```typescript
export declare function stubHandlerContext(requestOptions?: ShotRequestOptions): HandlerContextStub;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| requestOptions | <code>ShotRequestOptions</code> | |
<b>Returns:</b>
`HandlerContextStub`