According to the CDC web site St Maarten and Saint Martin are level 3 high risk covid and as such a test is required before arriving in a New York airport if that is the final destination airport.
https://www.cdc.gov/coronavirus/2019-ncov/travelers/map-and-travel-notices.html