Skip to content

After updating @aws-amplify/auth to latest version(1.5.0) test cases is failing because of failed to mock Auth module. #4499

Closed
@anis-shaikh

Description

@anis-shaikh

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:

  1. Import Auth API by
    import Auth from '@aws-amplify/auth';

  2. mock it by jest
    jest.mock('@aws-amplify/auth');

  3. 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';`

Metadata

Metadata

Assignees

Labels

AuthRelated to Auth components/categorybugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions