Chu Du

Results 13 comments of Chu Du

I can propose a fix: to add "then" to excluded property at this line in [Mock.ts](https://github.com/NagRock/ts-mockito/blob/38ae3b754743e1517539f9d821d6d34275c39741/src/Mock.ts#L20) ```typescript private excludedPropertyNames: string[] = ["hasOwnProperty", "then"]; ``` It is because Promise and functions...

For now, this is my workaround **JavaScript:** ```javascript const { mock, // Don't use this instance, } = require('ts-mockito') const { Mocker } = require('ts-mockito/lib/Mock') // Must be below require('ts-mockito')...

I'm having the same issue and I'm hoping this fix could make it to official as soon as possible. Thank you all for the great work.