Testing a slot without releasing it to the stable channel

I’m working on a new snap with a few slots inside.

I have a second snap to test it, where the slots are referenced as plugs. To test the slots, I’m installing the snap locally but not releasing the snap, since it is not properly tested yet.

The problem is, I can’t build my test snap. snapcraft command fails with the following error.

Could not install snap defined in plug 'my-snap'. The missing library report may have false positives listed if those libraries are provided by the content snap.

I found that the owner of this issue had the same problem and resolved the issue by releasing the snap (which includes the slots) to the stable channel.

Does anybody know if it is possible to reference a slot without releasing it?