I'm working on a two-package project using Typescript & React-Native:
PackageA(which is leaf package) contains a REST client and mocks
MyOwnLibrary
- src
-tests
_mocks_
-restClientMock.ts
-restClient.ts
Right now, I can import stuff using something like 'import { restClient } from 'MyOwnLibrary/lib/tests/_mocks'
But, I want to consume the mocks like import { restClient } from 'MyOwnLibrary/mocks'
Any ideas how to get this done?