This commits adds "assertSnapshot" API as part of "testing" module.
This API is modelled after Jest's API and can be used to compare
test results with previously saved result in a file.
Co-authored-by: Ben Heidemann <ben@heidemann.co.uk>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>