Have a challenge of unit testing of #xtermjs based cli app. The trick is to make #StoryBook a base for unit tests, run CLI in IFRAME and use in-browser test runner. @web/test-runner is the current choice so far. Kudos to https://modern-web.dev
That is why: