Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(jest): Ignore mocks as modules #627

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

ConradJChan
Copy link
Contributor

Cleans up the warning when running the tests

jest-haste-map: duplicate manual mock found: data
  The following files share their name; please delete one of them:
    * <rootDir>/src/highlight/__mocks__/data.ts
    * <rootDir>/src/region/__mocks__/data.ts

jest-haste-map: duplicate manual mock found: data
  The following files share their name; please delete one of them:
    * <rootDir>/src/region/__mocks__/data.ts
    * <rootDir>/src/store/highlight/__mocks__/data.ts

jest-haste-map: duplicate manual mock found: index
  The following files share their name; please delete one of them:
    * <rootDir>/src/components/ReplyForm/__mocks__/index.ts
    * <rootDir>/src/store/__mocks__/index.ts

@ConradJChan ConradJChan requested a review from a team as a code owner October 21, 2020 20:58
Copy link
Contributor

@mxiao6 mxiao6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for getting rid of them!

Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ConradJChan ConradJChan merged commit 6d23ed1 into box:master Oct 21, 2020
@ConradJChan ConradJChan deleted the ignore-mock-modules branch October 21, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants