Testing Edge Functions With Jest
Im trying to test Edge functions with Jest, starting with the helper functions im sharing throughout my Functions. Im less concerned with testing the execution of the function itself, more so with the logic of these shared functions.
Has anyone had success setting up Jest tests for functions using ESM imports? Jest has some docs on it here https://jestjs.io/docs/ecmascript-modules, but Im having trouble getting it to work and wanted to reach out here to see how you all have set up testing your Edge functions.
Thanks!
Has anyone had success setting up Jest tests for functions using ESM imports? Jest has some docs on it here https://jestjs.io/docs/ecmascript-modules, but Im having trouble getting it to work and wanted to reach out here to see how you all have set up testing your Edge functions.
Thanks!