How to do automation testing of lightningJS app using Jest?

Hi, can anyone help me with FE testing using Jest and how to develop testcases in it. Needed guidance on the setup as well.

Do you want to write unit tests? You can still write tests for non UI modules, so you bypass lightningJS. Same for testing business logic of component. You can mount lightningJS component and test it’s state and functionalities.
When it comes to UI testing, I see some possibility for components run in test mode to expose some UI state through DOM so Jest can later interact and assert that DOM state.

I hope that I give you some ideas and directions.