Closed
Description
After updating @aws-amplify/auth to latest version(1.5.0) test cases is failing because of failed to mock Auth module.
Steps to reproduce the behavior:
-
Import Auth API by
import Auth from '@aws-amplify/auth'; -
mock it by jest
jest.mock('@aws-amplify/auth'); -
See error
Failed to get mock metadata: /Users/an***/Documents/s***/node_modules/@aws-amplify/auth/index.js
` Test suite failed to run
Failed to get mock metadata: /Users/an***/Documents/s***/node_modules/@aws-amplify/auth/index.js
See: https://jestjs.io/docs/manual-mocks.html#content
> 1 | import Auth from '@aws-amplify/auth';`