mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
Chore: Make jest ignore __mocks__ folders
This commit is contained in:
parent
e1d0fac0ea
commit
1bb76ac25b
@ -30,6 +30,8 @@ const moduleNameMapper = {
|
||||
module.exports = {
|
||||
rootDir: __dirname,
|
||||
moduleNameMapper,
|
||||
/* Tells jest to ignore duplicated manual mock files, such as index.js */
|
||||
modulePathIgnorePatterns: ['.*__mocks__.*'],
|
||||
testPathIgnorePatterns: ['node_modules/', '__tests__'],
|
||||
globalSetup: '@strapi/admin-test-utils/global-setup',
|
||||
setupFiles: ['@strapi/admin-test-utils/environment'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user