Daniel,
Do you have an example of a project for us to consider? One idea is that if you’re using the wrapped mode for library, you can use the private names for testing (e.g. Lib__MyModule), while not adding them as aliases in your lib.ml file.
Otherwise, I agree with the other poster that getting inline tests to work in jbuilder is the way to go in the future.