-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Subject of the issue
When there is a namespace and an interface with the same name, with the namespace declared first, mocking that interface returns null.
Your environment
- ts-auto-mock version: 3.2.2
- typescript version: 4.3.2
- node version: 14.3.0
- npm version: 7.6.0
- list any other dependencies that you think are relevant
- though it is probably irrelevant to the example, I am using jest-ts-auto-mock v2.0.0
Steps to reproduce
import {createMock} from 'ts-auto-mock'
namespace B {}
interface B {
b: string
}
console.log(createMock<B>())
Expected behavior
Should log {b: ""}
Actual behavior
Actually logs null
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working