Hi there!
I’m trying to export a collection outside my package, but I want to make it only visible when running in Test Mode. I know there is an option to do this, which work like this I guess:
Package.onUse(function(api) {
...
api.export('collectionOnlyForTest', ['client', 'server'], { testOnly: true });
...
});
I am importing it like this:
import { collectionOnlyForTest } from 'meteor/myPackage';
If I import it in Normal Mode, I have access to it, which I don’t want.
I don’t know what I’m missing.
Thanks so much.