mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
added unit tests
This commit is contained in:
@ -1,24 +1,15 @@
|
||||
module.exports = {
|
||||
moduleFileExtensions: [
|
||||
"js",
|
||||
"json",
|
||||
"ts"
|
||||
],
|
||||
rootDir: ".",
|
||||
testRegex: ".*\\.spec\\.ts$",
|
||||
moduleFileExtensions: ['js', 'json', 'ts'],
|
||||
rootDir: '.',
|
||||
testRegex: '.*\\.spec\\.ts$',
|
||||
transform: {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
'^.+\\.(t|j)s$': 'ts-jest',
|
||||
},
|
||||
collectCoverageFrom: [
|
||||
"**/*.(t|j)s"
|
||||
],
|
||||
coverageDirectory: "./coverage",
|
||||
testEnvironment: "node",
|
||||
roots: [
|
||||
"<rootDir>/src/",
|
||||
"<rootDir>/libs/"
|
||||
],
|
||||
collectCoverageFrom: ['**/*.(t|j)s'],
|
||||
coverageDirectory: './coverage',
|
||||
testEnvironment: 'node',
|
||||
roots: ['<rootDir>/src/', '<rootDir>/libs/'],
|
||||
moduleNameMapper: {
|
||||
"^@app/common(|/.*)$": "<rootDir>/libs/common/src/$1"
|
||||
}
|
||||
'^@app/common(|/.*)$': '<rootDir>/libs/common/src/$1',
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user