aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/jest.config.js
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-02-21 14:27:12 +0100
committersonartech <sonartech@sonarsource.com>2022-03-07 20:02:55 +0000
commitd8530e0208081d06def14e861d3aa7bd5965d797 (patch)
tree7876cd7f4993bb28d86c399d3f93698c97b446e4 /server/sonar-web/jest.config.js
parentb90268c5cd663d677a4f0254c919e34cba67de5a (diff)
downloadsonarqube-d8530e0208081d06def14e861d3aa7bd5965d797.tar.gz
sonarqube-d8530e0208081d06def14e861d3aa7bd5965d797.zip
[NO JIRA] Setup react testing library
Diffstat (limited to 'server/sonar-web/jest.config.js')
-rw-r--r--server/sonar-web/jest.config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/jest.config.js b/server/sonar-web/jest.config.js
index 7feb2548c0a..9a61829902a 100644
--- a/server/sonar-web/jest.config.js
+++ b/server/sonar-web/jest.config.js
@@ -20,6 +20,7 @@ module.exports = {
'<rootDir>/config/jest/SetupEnzyme.js',
'<rootDir>/config/jest/SetupTestEnvironment.ts'
],
+ setupFilesAfterEnv: ['<rootDir>/config/jest/SetupReactTestingLibrary.js'],
snapshotSerializers: ['enzyme-to-json/serializer', 'jest-emotion'],
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['<rootDir>/config', '<rootDir>/node_modules', '<rootDir>/scripts'],