"danced a jig around the parlour"

Here, a jig probably just means some lively leaping around.

Strictly speaking, a jig is a dance that originated in England in the 16th Century but which is now mainly associated with Irish dance and Scottish country dance.

It is also the name given to the music for this kind of dance.