Testing Components
Last updated
Was this helpful?
Last updated
Was this helpful?
It is important to write focused and concise unit tests for your custom components. Attivio provides a number of testing utilities and mock implementations to make writing good unit tests simple.
The archetype generation referenced on the page provides examples of the techniques described here.
If your component uses any of the lifecycle or miscellaneous mix-ins, there is a test utility that will call them and set them up with appropriate mock implementations as needed: