531e4ab1a9
The service.js files are rarely unit tested because they are essentially glue code which acts as a singleton and doesn't use dependency injection, this lil cocktail makes it difficult to stub dependencies, as well as to call the init method more than once in a test suite. This change should give us improved unit test coverage
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"all": true,
|
|
"check-coverage": true,
|
|
"reporter": [
|
|
"html-spa",
|
|
"text-summary",
|
|
"cobertura"
|
|
],
|
|
"statements": 59,
|
|
"branches": 84,
|
|
"functions": 50,
|
|
"lines": 59,
|
|
"include": [
|
|
"core/{*.js,frontend,server,shared}"
|
|
],
|
|
"exclude": [
|
|
"core/frontend/src/**",
|
|
"core/frontend/public/**",
|
|
"core/server/data/migrations/**",
|
|
"core/server/data/schema/schema.js",
|
|
"!core/server/data/migrations/utils.js",
|
|
"core/frontend/web/**",
|
|
"!core/frontend/web/middleware/**",
|
|
"core/server/web/api/**",
|
|
"!core/server/web/api/middleware/**",
|
|
"core/server/web/api/testmode/**",
|
|
"core/server/web/parent/**",
|
|
"!core/server/web/parent/middleware/**",
|
|
"core/server/web/shared/**",
|
|
"!core/server/web/shared/middleware/**",
|
|
"core/server/api/endpoints/**",
|
|
"!core/server/api/endpoints/utils",
|
|
"core/server/services/email-analytics/jobs/**",
|
|
"core/server/services/members/jobs/**",
|
|
"core/server/services/email-service/wrapper.js",
|
|
"core/server/services/**/service.js"
|
|
]
|
|
}
|