From 3f89ef0ebddbff68994f48b067174e429b2dbfa2 Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Mon, 3 Oct 2022 08:47:23 +0200 Subject: [PATCH] Improve jest configuration by ignoring some package.json used in tests --- jest.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index e9ba0c307cf..6c434997397 100644 --- a/jest.config.js +++ b/jest.config.js @@ -27,6 +27,11 @@ module.exports = { }, }, coveragePathIgnorePatterns: ['/src/main/webapp/app/common/primary/applicationlistener/WindowApplicationListener'], - modulePathIgnorePatterns: ['/src/main/resources/', '/target/classes/generator/'], + modulePathIgnorePatterns: [ + '/src/main/resources/', + '/src/test/resources/', + '/target/classes/generator/', + '/target/test-classes/', + ], testResultsProcessor: 'jest-sonar-reporter', };