Homemade pesto recipes will only last about a week in the refrigerator. Jarred pesto will last longer, but it will eventually spoil and grow mold.