to say something for effect or amusement without meaning what one is saying.

I was joking when I said I was quitting, but everybody took me seriously.The governor joked that her fiery opponent should take up a calming hobby like knitting.He joked that he was going to paint the living room purple.