Astigmatism is diagnosed by an eye exam. A complete eye exam involves a series of tests to check your eye health and a refraction, which determines how your eyes bend light. Your eye doctor may use various instruments, aim bright lights directly at your eyes and ask you to look through several lenses.
https://www.mayoclinic.org/diseases-conditions/astigmatism/diagnosis-treatment/drc-20353838

