From the NYT article:
"Many theatergoers are happy to be back. Amy Ferreira, 46, of Millbury, Mass., said she had to pay roughly $167 for a PCR coronavirus test for her 10-year-old daughter, Eva, before coming to New York, but that it was worth it to see “Hamilton.” It was Eva’s birthday, and her family had gotten tickets months ago. Together, they had watched the Disney+ version many times, and Eva was singing the chorus to “My Shot.”"
In Times Sq area alone there are 2-3 covid testing vans (by Lion King, by 47th st, and by 44th st) and all are free. All they ask is a government ID and email/phone.
I agree $167 is pricey but the mother was ok with the price.