2 ms·
Sure - here's an example using Jest to test the logic in UDFs: https://github.com/fauna-labs/fql-utilities/blob/main/tests/collections.test.ts https://github.co
by robsutter 5y ago
Sure - here's an example using Jest to test the logic in UDFs: https://github.com/fauna-labs/fql-utilities/blob/main/tests/collections.test.ts 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.