diff --git a/jest.config.js b/jest.config.js index 508bae2..051c5c5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,17 +7,17 @@ module.exports = { '!app/app.js', '!app/global-styles.js', '!app/*/*/Loadable.{js,jsx}', - '!**/coverage/**', + '!**/coverage/**' ], - "reporters": [ - "default", + reporters: [ + 'default', [ - "jest-sonar", + 'jest-sonar', { - "outputDirectory": "reports", - "outputName": "test-report.xml", - "relativeRootDir": "./", - "reportedFilePath": "relative" + outputDirectory: 'reports', + outputName: 'test-report.xml', + relativeRootDir: './', + reportedFilePath: 'relative' } ] ], @@ -26,23 +26,18 @@ module.exports = { statements: 50, branches: 50, functions: 50, - lines: 50, - }, + lines: 50 + } }, preset: 'react-native', moduleDirectories: ['node_modules', 'app'], moduleNameMapper: { '@app(.*)$': '/app/$1', '@(atoms|molecules|organisms)(.*)$': '/app/components/$1/$2', - '@(containers|components|services|utils|themes|scenes|navigators)(.*)$': '/app/$1/$2' + '@(containers|components|services|utils|themes|scenes|navigators)(.*)$': + '/app/$1/$2' }, - "setupFiles": [ - "./node_modules/react-native-gesture-handler/jestSetup.js" - ], - "setupFilesAfterEnv": [ - "./setupTests.js" - ], - "transformIgnorePatterns": [ - "/node_modules/(?!react-native)/.+" - ] + setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'], + setupFilesAfterEnv: ['./setupTests.js'], + transformIgnorePatterns: ['/node_modules/(?!react-native)/.+'] }; diff --git a/package.json b/package.json index 52ed43b..cb29cab 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "eslint-plugin-redux-saga": "^1.1.1", "eslint-plugin-standard": "^4.0.0", "husky": "^3.0.8", - "jest": "^24.5.0", + "jest": "^29", "jest-sonar": "^0.2.16", "pre-commit": "1.2.2", "prettier": "^1.18.2",