A law professor backed byis projected to win the Democratic primary for a New York House seat.

Zephyr Teachout, a former New York gubernatorial candidate, defeated Livingston town Councilman Will Yandik.

Teachout, a progressive firebrand, was endorsed by Bernie Sanders and picked up many endorsements from influential Democrats in the district.

In November she will face John Faso, who on Tuesday night was projected to win the Republican primary for the same seat.

Heaney tried to cast his opponent as a political insider, but Faso consolidated support from most of the local GOP county committees and from the state’s Conservative Party.

Faso and Teachout will face off for the right to replace Rep. Chris Gibson (R-N.Y.) in New York’s 19th district, in the Hudson Valley.