This repo shows how to implement Unit Testing for Content Hub Scripts. I use this repo in one of my blog posts.
Sitecore Content Hub™ allows you to integrate custom scripts in your business logic. There are different script types with different context properties. Depending on the script type and the use case, you can trigger scripts manually, or have them automatically triggered by using Triggers. * Copied from Sitecore docs.