Closed Smponias closed 3 years ago
Working on it. I am pretty confident it will be part of 4.1 in few days.
OK, so the generation works, but mocks does not have async
modifier, as Sourcery does not provide that yet. Still, the tests should work anyway. Same with throwing variables (but in this case there is no way to specify throw value yet)
Considering it fixed in 4.1, since it does not break tests anymore.
I am testing the new async await feature from Swift 5.5 and SwiftyMocky can't generate mocks for async funcs. I just wanted to let you know.
e. g.
func isOnline() async -> Bool
The mock looks like this: