Any time you abstract there's a cost. If you reall...
# best-practices
l
Any time you abstract there's a cost. If you really plan to re-use those calls across multiple spec files then go for it. But be aware that the only real reuse you're getting in this specific case is the API URL. You're still defining the body in the spec file. But maybe that's enough to make it worth it 🤷‍♀️ It doesn't seem unreasonable or anything.
5 Views