A test helper that creates a mock resolver backed by a tempdir serving package directories, without spinning up a pkgfs instance.
Nothing special, other than including this crate:
deps = [
"//src/sys/pkg/testing/mock-resolver",
]
In the component manifest for the tests that utilize this crate, add the isolated-temp capability to allow this crate to create tempdirs.
{ "sandbox": { "features": [ "isolated-temp" ] } }