Snapshot testing is useful when making refactoring changes, since it helps you fix the outputs of your code and makes sure it doesn't drift when you don't want it to. The {testthat} library provides convenient ways to snapshot using expect_snapshot. I'd like to add and make sure we have a few snapshots for our canned forecasters.
Snapshot testing is useful when making refactoring changes, since it helps you fix the outputs of your code and makes sure it doesn't drift when you don't want it to. The {testthat} library provides convenient ways to snapshot using expect_snapshot. I'd like to add and make sure we have a few snapshots for our canned forecasters.