I want to test the loopback endpoints with mocha, like this example that comes with loopback This example, but when I instantiate the main class I am using the datasource that was injected in each repository, but just for testing with mocha I want to change the repositories datasource to an in-memory datasource
So how can I change this injection for an in-memory datasource just at the moment i type npm test
constructor(
@inject('datasources.Schedule') dataSource: ScheduleDataSource,