Im want to create an org-dependent Unlocked Package, and I have several questions about this.
The package is org dependent because it depends on org metadata that I would prefer not to include in the package.
- will the unit tests be executed during version creation, just like for a "normal" unlocked package?
- but then I cannot use the org metadata in the tests, which does not make sense.
- or is there a way to push the org metadata to the temporary scratch org used by the package version creation?
- the org metadata not included in the package is a custom sobject definition. Including it would obviously solve my immediate problem - what are the pros and cons of doing this?