mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 21:54:24 +00:00
Chore: Make jest ignore __mocks__ folders
This commit is contained in:
parent
55999b5cda
commit
f08e4c28e1
@ -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