"The end of the depression in the U.S. is associated with the onset of the war economy of World War II, beginning around 1939."
Also from War Economy entry:
"On the supply side, it has been observed that wars sometimes have the effect of accelerating progress of technology to such an extent that an economy is greatly strengthened after the war, especially if it has avoided the war-related destruction. This was the case, for example, with the United States in World War I and World War II."
It didn't suffer through it at all, it got fixed by it.