First, she prayed her way through it. She was a faithful follower of God who opened up her heart and listened for the Spirit as best she could. Second, her heart was filled with her child. She cherished her moments of being a mother. She pondered all that Jesus did and kept them in her heart.
Good mothers do that.
They remember all the little things that happened throughout childhood, throughout the teen years, until finally it becomes clear that in a way they know their children better than they know themselves. And yet, they keep it to themselves, in their heart, unless they are asked. Finally, and most important, she allowed all these changes to take place. She let her little boy go, and grow. She stood by Jesus through all the stages of his life.