Test-Driven Files

We’re ready to test-drive our file-serving code. We start by discussing strategy: unit tests versus integration tests; synchronous versus asynchronous Node calls; temp directory versus build-tree directory. Then we write the file handling code for our test, taking extra care with setup and cleanup so the test will work reliably in the future.

comments powered by Disqus