MockSwift icon indicating copy to clipboard operation
MockSwift copied to clipboard

Auto-generated mocks requires additional module imports

Open eedmond opened this issue 11 months ago • 0 comments

🐞 Describe the bug

The generated mocks require importing modules in addition to my project module. However, the MockSwift.stencil template only imports from Foundation, MockSwift and argument.module.

📝 To Reproduce

Generate mocks via Sourcery with types that originate in a module other than the project's root module.

🔍 Expected behavior

I would like to be able to add a list of arguments for additional modules to import in the template.

⚙️ Environment

MockSwift version: v1.1.0
OS:

  • [x] macOS Sequoia 15.2
  • [ ] Linux x.x.x

Swift version: 6.1
Xcode version: private version

eedmond avatar Jan 08 '25 21:01 eedmond