WIP: add E2E test suite unrelated to docs examples

This is ongoing, bear with me while I hack on this :<
Parenthesis missing: `s && (s.isFile() || s.isDirectory())`