mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #574 from Human-Connection/2019/kw19/codecov
2019/kw19/codecov
This commit is contained in:
commit
d6f423d845
20
.codecov.yml
20
.codecov.yml
@ -114,8 +114,8 @@ coverage:
|
|||||||
paths:
|
paths:
|
||||||
- webapp/ # only include coverage in "webapp/" folder
|
- webapp/ # only include coverage in "webapp/" folder
|
||||||
|
|
||||||
#patch:
|
patch:
|
||||||
# default:
|
default: false
|
||||||
# against: parent
|
# against: parent
|
||||||
# target: 80%
|
# target: 80%
|
||||||
# branches: null
|
# branches: null
|
||||||
@ -155,9 +155,15 @@ coverage:
|
|||||||
# - "old_path::new_path"
|
# - "old_path::new_path"
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
layout: header, diff, trends, uncovered, reach, files, tree, changes, sunburst, flags
|
# layout options are quite limited in v4.x - there have been way more options in v1.0
|
||||||
branches: *
|
layout: reach, diff, flags, files # mostly old options: header, diff, uncovered, reach, files, tree, changes, sunburst, flags
|
||||||
behavior: new # default = posts once then update, posts new if delete
|
behavior: new # default = posts once then update, posts new if delete
|
||||||
# once = post once then updates
|
# once = post once then updates
|
||||||
# new = delete old, post new
|
# new = delete old, post new
|
||||||
# spammy = post new
|
# spammy = post new
|
||||||
|
require_changes: false # if true: only post the comment if coverage changes
|
||||||
|
require_base: no # [yes :: must have a base report to post]
|
||||||
|
require_head: no # [yes :: must have a head report to post]
|
||||||
|
branches: null # branch names that can post comment
|
||||||
|
flags: null
|
||||||
|
paths: null
|
||||||
@ -27,7 +27,17 @@
|
|||||||
"jest": {
|
"jest": {
|
||||||
"verbose": true,
|
"verbose": true,
|
||||||
"collectCoverage": true,
|
"collectCoverage": true,
|
||||||
"coverageReporters": ["text", "lcov"],
|
"collectCoverageFrom": [
|
||||||
|
"**/*.js",
|
||||||
|
"!**/node_modules/**",
|
||||||
|
"!**/test/**",
|
||||||
|
"!**/dist/**",
|
||||||
|
"!**/src/**/?(*.)+(spec|test).js?(x)"
|
||||||
|
],
|
||||||
|
"coverageReporters": [
|
||||||
|
"text",
|
||||||
|
"lcov"
|
||||||
|
],
|
||||||
"testMatch": [
|
"testMatch": [
|
||||||
"**/src/**/?(*.)+(spec|test).js?(x)"
|
"**/src/**/?(*.)+(spec|test).js?(x)"
|
||||||
]
|
]
|
||||||
@ -96,4 +106,4 @@
|
|||||||
"nodemon": "~1.19.0",
|
"nodemon": "~1.19.0",
|
||||||
"supertest": "~4.0.2"
|
"supertest": "~4.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"plugins": [
|
||||||
|
"@babel/plugin-syntax-dynamic-import"
|
||||||
|
],
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
[
|
||||||
"@babel/preset-env",
|
"@babel/preset-env",
|
||||||
@ -21,4 +24,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -18,20 +18,32 @@
|
|||||||
"jest": {
|
"jest": {
|
||||||
"verbose": true,
|
"verbose": true,
|
||||||
"collectCoverage": true,
|
"collectCoverage": true,
|
||||||
"coverageReporters": ["text", "lcov"],
|
"collectCoverageFrom": [
|
||||||
"moduleFileExtensions": [
|
"**/*.{js,vue}",
|
||||||
"js",
|
"!**/node_modules/**",
|
||||||
"json",
|
"!**/.nuxt/**",
|
||||||
"vue"
|
"!**/?(*.)+(spec|test).js?(x)"
|
||||||
|
],
|
||||||
|
"coverageReporters": [
|
||||||
|
"text",
|
||||||
|
"lcov"
|
||||||
],
|
],
|
||||||
"transform": {
|
"transform": {
|
||||||
".*\\.(vue)$": "vue-jest",
|
".*\\.(vue)$": "vue-jest",
|
||||||
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
|
||||||
},
|
},
|
||||||
|
"moduleFileExtensions": [
|
||||||
|
"js",
|
||||||
|
"json",
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"^@/(.*)$": "<rootDir>/src/$1",
|
"^@/(.*)$": "<rootDir>/src/$1",
|
||||||
"^~/(.*)$": "<rootDir>/$1"
|
"^~/(.*)$": "<rootDir>/$1"
|
||||||
}
|
},
|
||||||
|
"testMatch": [
|
||||||
|
"**/?(*.)+(spec|test).js?(x)"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@human-connection/styleguide": "0.5.15",
|
"@human-connection/styleguide": "0.5.15",
|
||||||
@ -63,6 +75,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "~7.4.4",
|
"@babel/core": "~7.4.4",
|
||||||
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||||
"@babel/preset-env": "~7.4.4",
|
"@babel/preset-env": "~7.4.4",
|
||||||
"@vue/cli-shared-utils": "~3.7.0",
|
"@vue/cli-shared-utils": "~3.7.0",
|
||||||
"@vue/eslint-config-prettier": "~4.0.1",
|
"@vue/eslint-config-prettier": "~4.0.1",
|
||||||
@ -86,4 +99,4 @@
|
|||||||
"vue-jest": "~3.0.4",
|
"vue-jest": "~3.0.4",
|
||||||
"vue-svg-loader": "~0.12.0"
|
"vue-svg-loader": "~0.12.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user