Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Fix code climate coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
developer239 committed Aug 24, 2018
1 parent eab417c commit 96d65bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -47,5 +47,5 @@ jobs:
name: Run Test and Coverage
command: |
./cc-test-reporter before-build
npm test -- --coverage
npm run test:coverage
./cc-test-reporter after-build --exit-code $?
21 changes: 9 additions & 12 deletions jest.config.js
@@ -1,5 +1,5 @@
module.exports = {
"setupTestFrameworkScriptFile": "<rootDir>/__tests__/_utils/init.ts",
'setupTestFrameworkScriptFile': '<rootDir>/__tests__/_utils/init.ts',
'moduleFileExtensions': ['js', 'jsx', 'json', 'ts', 'tsx'],
'verbose': true,
'collectCoverage': false,
Expand All @@ -25,10 +25,7 @@ module.exports = {
'statements': 80,
},
},
'coverageReporters': [
'text',
'text-summary',
],
'coverageReporters': ['json', 'lcov', 'text'],
'testRegex': '\\.test\\.(js|ts)x?$',
'testPathIgnorePatterns': [
'/node_modules/',
Expand All @@ -37,11 +34,11 @@ module.exports = {
],
'moduleDirectories': [
'node_modules',
'src'
'src',
],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/src/$1",
"^~test/(.*)$": "<rootDir>/__tests__/$1",
"^~mock/(.*)$": "<rootDir>/__mocks__/$1"
}
};
'moduleNameMapper': {
'^~/(.*)$': '<rootDir>/src/$1',
'^~test/(.*)$': '<rootDir>/__tests__/$1',
'^~mock/(.*)$': '<rootDir>/__mocks__/$1',
},
}

0 comments on commit 96d65bd

Please sign in to comment.