@@ -11,3 +11,7 @@ public | |||
# Mac files | |||
.DS_Store | |||
# tests | |||
lcov.info | |||
coverage/ |
@@ -23,6 +23,7 @@ build/ | |||
# tests | |||
src/test/json/**/*.png | |||
lcov.info | |||
coverage/ | |||
.nyc_output | |||
# eslint |
@@ -6,6 +6,7 @@ sonarqube { | |||
property "sonar.test.inclusions", "src/main/js/**/__tests__/**" | |||
property "sonar.exclusions", "src/main/js/libs/third-party/**/*,src/main/js/**/__tests__/**" | |||
property "sonar.eslint.reportPaths", "eslint-report.json" | |||
property "sonar.typescript.lcov.reportPaths", "coverage/lcov.info" | |||
} | |||
} | |||
@@ -78,7 +78,7 @@ | |||
"lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js", | |||
"ts-check": "tsc --noEmit", | |||
"validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", | |||
"validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test" | |||
"validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test --coverage" | |||
}, | |||
"engines": { | |||
"node": ">=6" | |||
@@ -91,10 +91,12 @@ | |||
"IE 11" | |||
], | |||
"jest": { | |||
"coverageDirectory": "<rootDir>/target/coverage", | |||
"coveragePathIgnorePatterns": [ | |||
"<rootDir>/node_modules", | |||
"<rootDir>/tests" | |||
"coverageDirectory": "<rootDir>/coverage", | |||
"collectCoverageFrom": [ | |||
"src/main/js/**/*.{ts,tsx}" | |||
], | |||
"coverageReporters": [ | |||
"lcovonly" | |||
], | |||
"globals": { | |||
"ts-jest": { | |||
@@ -124,8 +126,8 @@ | |||
"enzyme-to-json/serializer" | |||
], | |||
"testPathIgnorePatterns": [ | |||
"<rootDir>/config", | |||
"<rootDir>/node_modules", | |||
"<rootDir>/src/main/webapp", | |||
"<rootDir>/scripts" | |||
], | |||
"testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$", |
@@ -20,6 +20,7 @@ yarn-error.log* | |||
# tests | |||
src/test/json/**/*.png | |||
lcov.info | |||
coverage/ | |||
.nyc_output | |||
# eslint |
@@ -6,6 +6,7 @@ sonarqube { | |||
property "sonar.test.inclusions", "src/main/js/**/__tests__/**" | |||
property "sonar.exclusions", "src/main/js/**/__tests__/**" | |||
property "sonar.eslint.reportPaths", "eslint-report.json" | |||
property "sonar.typescript.lcov.reportPaths", "coverage/lcov.info" | |||
} | |||
} | |||
@@ -138,7 +138,7 @@ | |||
"lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js", | |||
"ts-check": "tsc --noEmit", | |||
"validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", | |||
"validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test", | |||
"validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test --coverage", | |||
"precommit": "yarn ts-check && lint-staged" | |||
}, | |||
"engines": { | |||
@@ -152,10 +152,12 @@ | |||
"IE 11" | |||
], | |||
"jest": { | |||
"coverageDirectory": "<rootDir>/target/coverage", | |||
"coveragePathIgnorePatterns": [ | |||
"<rootDir>/node_modules", | |||
"<rootDir>/tests" | |||
"coverageDirectory": "<rootDir>/coverage", | |||
"collectCoverageFrom": [ | |||
"src/main/js/**/*.{ts,tsx,js}" | |||
], | |||
"coverageReporters": [ | |||
"lcovonly" | |||
], | |||
"globals": { | |||
"ts-jest": { | |||
@@ -185,8 +187,8 @@ | |||
"enzyme-to-json/serializer" | |||
], | |||
"testPathIgnorePatterns": [ | |||
"<rootDir>/config", | |||
"<rootDir>/node_modules", | |||
"<rootDir>/src/main/webapp", | |||
"<rootDir>/scripts" | |||
], | |||
"testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$", |