[MM-62409] Generate and publish code coverage for webapp (#31144)
* Generate and publish code coverage for webapp * Upate coverage output path * Simplify coverage patterns * Disable coverage file search --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
50d81c2a38
Коммит
65c5f40c6a
@@ -8,15 +8,11 @@ const config = {
|
||||
testPathIgnorePatterns: ['/node_modules/'],
|
||||
clearMocks: true,
|
||||
collectCoverageFrom: [
|
||||
'actions/src/**/*.{js,jsx,ts,tsx}',
|
||||
'client/src/**/*.{js,jsx,ts,tsx}',
|
||||
'components/src/**/*.{jsx,tsx}',
|
||||
'plugins/src/**/*.{js,jsx,ts,tsx}',
|
||||
'reducers/src/**/*.{js,jsx,ts,tsx}',
|
||||
'routes/src/**/*.{js,jsx,ts,tsx}',
|
||||
'selectors/src/**/*.{js,jsx,ts,tsx}',
|
||||
'stores/src/**/*.{js,jsx,ts,tsx}',
|
||||
'utils/src/**/*.{js,jsx,ts,tsx}',
|
||||
'src/**/*.{js,jsx,ts,tsx}',
|
||||
],
|
||||
coveragePathIgnorePatterns: [
|
||||
'/node_modules/',
|
||||
'mattermost-redux/src/selectors/create_selector',
|
||||
],
|
||||
coverageReporters: ['lcov', 'text-summary'],
|
||||
fakeTimers: {
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
"test:watch": "cross-env TZ=Etc/UTC jest --watch",
|
||||
"test:updatesnapshot": "cross-env TZ=Etc/UTC jest --updateSnapshot",
|
||||
"test:debug": "cross-env TZ=Etc/UTC jest --forceExit --detectOpenHandles --verbose",
|
||||
"test-ci": "cross-env TZ=Etc/UTC jest --ci --maxWorkers=100%",
|
||||
"test-ci": "cross-env TZ=Etc/UTC jest --ci --maxWorkers=100% --coverage",
|
||||
"clean": "rm -rf dist node_modules .eslintcache .stylelintcache tsconfig.tsbuildinfo",
|
||||
"stats": "cross-env NODE_ENV=production webpack --profile --json > webpack_stats.json",
|
||||
"mmjstool": "mmjstool",
|
||||
|
||||
Ссылка в новой задаче
Block a user