to not smile or laugh when it's hard not to
Even though the joke was funny, she managed to keep a straight face.
冗談が面白かったにもかかわらず、彼女は真顔を保つことができた。