Closed cyberduck1 closed 2 years ago
OK so after 2 days trying to solve this, this is how I did it.
I just created a mock function to pass the expected values as I couldn't run the microservice cross apps for some reason.
jest.mock('redux-micro-frontend', () => {
const GlobalStore = {
Get: () => ({
GetPartnerState: () => ({ REF_URL: 'http://localhost:50000' }),
}),
}
return { GlobalStore }
})
I know it doesn't solve the issue entirely but at least it passes my tests
[Related] https://github.com/microsoft/redux-micro-frontend/issues/8
This is the message I get
package.json
jest.config.js