Re:Reducing complexity by integrating through the database
by robsutter on Thursday November 04, 2021 @01:56PM
(#29110422)
Sure - here's an example using Jest to test the logic in UDFs: https://github.com/fauna-labs/fql-utilities/blob/main/tests/...
You can use Jest's before[All] and after[All] to do any required setup and teardown per usual.
For Fauna, UDFs and stored procedures are synonymous.
Can you give an example of how this is possible, or what tools/services it's possible with? I can understand how it would work on UDFs, but not entirely sure how it would be possible for stored procedures, esp when they're often times doing something more complex than simple read operations.