refactor(server): jobs and processors (#1787)

* refactor: jobs and processors

* refactor: storage migration processor

* fix: tests

* fix: code warning

* chore: ignore coverage from infra

* fix: sync move asset logic between job core and asset core

* refactor: move error handling inside of catch

* refactor(server): job core into dedicated service calls

* refactor: smart info

* fix: tests

* chore: smart info tests

* refactor: use asset repository

* refactor: thumbnail processor

* chore: coverage reqs
This commit is contained in:
Jason Rasmussen
2023-02-25 09:12:03 -05:00
committed by GitHub
parent 71d8567f18
commit 6c7679714b
108 changed files with 1645 additions and 1072 deletions

View File

@@ -131,21 +131,24 @@
},
"collectCoverageFrom": [
"**/*.(t|j)s",
"!**/migrations/*"
"!<rootDir>/libs/infra/**/*"
],
"coverageDirectory": "./coverage",
"coverageThreshold": {
"global": {
"lines": 20,
"statements": 20
"lines": 17,
"statements": 17
},
"./libs/domain/": {
"branches": 80,
"functions": 88,
"lines": 95,
"statements": 94
"functions": 85,
"lines": 90,
"statements": 90
}
},
"setupFilesAfterEnv": [
"<rootDir>/libs/domain/test/setup.ts"
],
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
@@ -153,7 +156,6 @@
],
"moduleNameMapper": {
"@app/common": "<rootDir>/libs/common/src",
"^@app/storage(|/.*)$": "<rootDir>/libs/storage/src/$1",
"^@app/infra(|/.*)$": "<rootDir>/libs/infra/src/$1",
"^@app/domain(|/.*)$": "<rootDir>/libs/domain/src/$1"
}