
Consider it all joy, my brethren, when you encounter various trials, knowing that the testing of your faith produces endurance.
James 1:2-3 NASB
https://bible.com/bible/100/jas.1.2-3.NASB
Look at it this way. God gives us these trials (not temptations), to affirm our faith. He wants to be able to say to himself, good job you are faithful in this area. Then he will test us in another area of our lives. He doesn’t want us to remain as a baby in our faith. It is through this process, that we are able to help others in THEIR Faith. That is why we count it joy. Not because it may be fun, going through the testing, but because we are becoming mature and complete. One day we can enter heavens gates with the sound of, “Well done, good and faithfull servant”!
Thank You Lord.