Democrat Abigail Spanberger has been projected as winning the race for Virginia governor after a closely-watched election which her party hoped could signal a national trend.

The former congresswoman and CIA officer defeated the state's Republican Lieutenant Governor Winsome Earle-Sears, CBS News reported.

Virginia's leadership usually swings between Democrats and Republicans, meaning the outcome might serve as a bellwether for the electorate's mood going into next year's midterm elections.

High-profile races are also taking place on Tuesday in New York City, which is poised to possibly elect its first Muslim mayor, Zohran Mamdani, and New Jersey, which is also choosing a new governor.

Even though his name is not on the ballot, the elections happening around the US on Tuesday are being viewed as a referendum on President Donald Trump's policies. This was particularly true in Virginia, home to the Pentagon and many federal workers who have been affected by Trump's sweeping spending cuts.