We've released the @shopify/shopify-function-test-helpers package to simplify writing comprehensive integration tests for Shopify Functions using real production data. All function extension templates now include integration tests powered by this package.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/binary-testing-for-shopify-functions