Uncopypasta

Depends on #170 and #171. Read https://github.com/leebyron/jest/commit/ccd42397a7e62150cf30a6d90f792d039e8aabf9 directly to see sans dependencies.