Skip to content

Commit

Permalink
fix: double quotes in jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alichherawalla committed Apr 15, 2024
1 parent 5fa82c2 commit 08cabb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
35 changes: 15 additions & 20 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]
],
Expand All @@ -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(.*)$': '<rootDir>/app/$1',
'@(atoms|molecules|organisms)(.*)$': '<rootDir>/app/components/$1/$2',
'@(containers|components|services|utils|themes|scenes|navigators)(.*)$': '<rootDir>/app/$1/$2'
'@(containers|components|services|utils|themes|scenes|navigators)(.*)$':
'<rootDir>/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)/.+']
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 08cabb3

Please sign in to comment.