You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transform works well when I use it in my application, but it fails when running my unit tests declaring that it is not a function. Is there a specific setup step that needs to be performed when using Jest?
The text was updated successfully, but these errors were encountered:
@bellmoose - You didn't provide much info on what your code looks like but I was running into the same issue so i'll try and walk you through it as well as leave this here for others:
When you create a transform you are getting back an object that has three functions not a function itself.... Inbound, Outbound, and Config. Depending on your transform you'll need to test them individually. Below is my code for a really simple transform that blacklists "account.loading" from being persisted.
The transform works well when I use it in my application, but it fails when running my unit tests declaring that it is not a function. Is there a specific setup step that needs to be performed when using Jest?
The text was updated successfully, but these errors were encountered: