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