We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9822fae + dbccc29 commit 97ec442Copy full SHA for 97ec442
content/fundamentals/unit-testing.md
@@ -166,7 +166,7 @@ Nest also allows you to define a mock factory to apply to all of your missing de
166
167
```typescript
168
// ...
169
-import { ModuleMocker, MockFunctionMetadata } from 'jest-mock';
+import { ModuleMocker, MockMetadata } from 'jest-mock';
170
171
const moduleMocker = new ModuleMocker(global);
172
@@ -185,7 +185,7 @@ describe('CatsController', () => {
185
if (typeof token === 'function') {
186
const mockMetadata = moduleMocker.getMetadata(
187
token,
188
- ) as MockFunctionMetadata<any, any>;
+ ) as MockMetadata<any, any>;
189
const Mock = moduleMocker.generateFromMetadata(mockMetadata);
190
return new Mock();
191
}
0 commit comments