To quote Christian Johansen in his excellent book Test-Driven Javascript (2010)
Learning tests aren't a part of production code; they live in a separate repository, a personal repository, and they help us document our knowledge and our learning experience