`{shinytest2}` allow to do this. This should also be exposed to `shiny_bg` and all callr utils via a path parameter ...