Has someone already gone through the work of building tests for pack building blocks. Is there a good way of testing the entire execution of a formula/sync table, i.e. with some sample inputs for the params.
As a dev I would like to be able to write testing code that:
- mocks/stubs
fetcher.fetch
network calls (also being able to waive auth) - for formulas (or sync table “formulas”), be able to emulate an execution of the formula with the specified params, and assert the result of the execute callback. same would be nice for get schema for dynamic sync tables.
The first seems straightforward, but I don’t see a clean way of accomplishing the second as it would probably requiring building test infra to mimic actual pack execution.