From c3553bdd54e796b6f8fa22887383e6aad90374ea Mon Sep 17 00:00:00 2001 From: AlasDiablo <25723276+AlasDiablo@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:25:15 +0200 Subject: [PATCH] fix: enable transformers test unit --- jest.config.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/jest.config.js b/jest.config.js index cbd424e91..55893e3fe 100644 --- a/jest.config.js +++ b/jest.config.js @@ -58,5 +58,42 @@ module.exports = { ], testTimeout: 8000, }, + { + displayName: 'ezsTansformers', + rootDir: `${__dirname}/packages/transformers`, + modulePaths: ['/packages/transformers/node_modules'], + moduleDirectories: [ + `/packages/transformers/node_modules`, + 'node_modules', + ], + moduleNameMapper: {}, + testMatch: [ + '**/test?(s)/**/*.[jt]s?(x)', + '**/__tests__/**/*.[jt]s?(x)', + '**/?(*.)+(spec|test).[tj]s?(x)', + ], + testEnvironment: 'node', + testPathIgnorePatterns: [ + '/node_modules/', + 'locals.js', + 'testOne.js', + 'testAll.js', + '/data/', + ], + collectCoverage: true, + coveragePathIgnorePatterns: [ + '/node_modules/', + '/test/', + '/lib/', + '/lodex/src/reducers/', + ], + coverageReporters: ['lcov', 'text-summary'], + preset: '@shelf/jest-mongodb', + transformIgnorePatterns: [ + '/node_modules/', + '/node_modules/(?!quick-lru)', + ], + testTimeout: 8000, + }, ], };