How do we do unit tests for projects with F7?

Everything that logic for the components is inside of script tags. How do we do it?