Open dkegel-fastly opened 2 years ago
https://pkg.go.dev/github.com/samber/lo looks like a cool generics library, but of course it uses testify for its tests :-(
Yeah, In
is going to take some time (and might result in some feature / code size tradeoffs). It essentially means we'll have to support reflection on functions. But you can try whether stubbing it out will get packages to compile so they become at least usable.
It might be useful to adapt testify
with build tags to isolate parts of its API that require the reflect
features that tinygo doesn't support.
Ooodles of packages use testify.
Testify's "tinygo test" fails at first because of https://github.com/tinygo-org/tinygo/issues/2649 Getting past that with -tags safe yields
It's not really clear that filing bugs about reflect problems makes much sense - we know reflect needs work - but as testify is a fairly central package, I figured it was just barely worth filing a bug.