-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Bug: Using Omit with interface when calling createMock returns undefined
If you try to use Omit with an interface when calling createMock it returns undefined.
Your environment
- ts-auto-mock version: 3.5.0
- typescript version: 4.1.3
- node version: 14.17.3
- yarn version: 1.22.11
Steps to reproduce
interface Person {
name: string;
password: string;
}
const personWithoutName = createMock<Omit<Person,"name">>();
console.log(personWithoutName); // Returns undefined
Expected behavior
interface Person {
name: string;
password: string;
}
const personWithoutName = createMock<Omit<Person,"name">>();
console.log(personWithoutName); // { password: "" }
Metadata
Metadata
Assignees
Labels
No labels