[x] I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
When running Jest tests I get duplicate manual mock warnings for:
fileMock.js in Free and yoast-components.
i18n.js in yoast-components and search-metadata-previews.
Full output
```
jest-haste-map: duplicate manual mock found:
Module name: fileMock
Duplicate Mock path: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js
Please delete one of the following two files:
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/js/tests/__mocks__/fileMock.js
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js
jest-haste-map: duplicate manual mock found:
Module name: @wordpress/i18n
Duplicate Mock path: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js
Please delete one of the following two files:
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/search-metadata-previews/tests/__mocks__/@wordpress/i18n.js
/Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js
```
Please describe what you expected to happen and why.
Not to get warnings.
How can we reproduce this behavior?
Run yarn test
See the console.
Technical info
If relevant, which editor is affected (or editors):
Please give us a description of what happened.
When running Jest tests I get
duplicate manual mock
warnings for:fileMock.js
in Free andyoast-components
.i18n.js
inyoast-components
andsearch-metadata-previews
.Full output
``` jest-haste-map: duplicate manual mock found: Module name: fileMock Duplicate Mock path: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js This warning is caused by two manual mock files with the same file name. Jest will use the mock file found in: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js Please delete one of the following two files: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/js/tests/__mocks__/fileMock.js /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/fileMock.js jest-haste-map: duplicate manual mock found: Module name: @wordpress/i18n Duplicate Mock path: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js This warning is caused by two manual mock files with the same file name. Jest will use the mock file found in: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js Please delete one of the following two files: /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/search-metadata-previews/tests/__mocks__/@wordpress/i18n.js /Users/igorschoester/vagrant-local/www/wordpress-default/public_html/wp-content/plugins/wordpress-seo/javascript/packages/yoast-components/jest/__mocks__/@wordpress/i18n.js ```Please describe what you expected to happen and why.
Not to get warnings.
How can we reproduce this behavior?
yarn test
Technical info
Used versions