isInteractive function

Alternative to interactive() for unit testing