Ask the resolver
A command that prints the chosen version for every dependency is the state of an install. Publishing that output with a release is what makes the release reproducible.
Test at the edges
Install with the lowest allowed version of each dependency. A test that only passes at newest is a test that hides a range that is too wide.