google / intermock

Mocking library to create mock objects with fake data for TypeScript interfaces
https://google.github.io/intermock/
Apache License 2.0
1.14k stars 71 forks source link

Support Relative Imported Interfaces #57

Closed 981377660LMT closed 3 years ago

981377660LMT commented 3 years ago

I have:

import {Bar,Fizz} from './'

interface Foo {
 bar: Bar,
 fizz: Fizz
}

output becomes:

{
  "Foo": {
    bar: {},
    fizz: {}
  }
}

expected:

{
  "Foo": {
    bar: // Bar's mock data ,
    fizz: // Fizz's mock data 
  }
}

Can I open a PR to support this feature ? 😃