Add jest
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- jest.config.js 204 additions, 0 deletionsjest.config.js
- package.json 11 additions, 1 deletionpackage.json
- spec/.eslintrc.js 6 additions, 0 deletionsspec/.eslintrc.js
- spec/empty_test.js 5 additions, 0 deletionsspec/empty_test.js
- src/app.js 84 additions, 0 deletionssrc/app.js
- src/server.js 5 additions, 89 deletionssrc/server.js
- yarn.lock 2933 additions, 30 deletionsyarn.lock
jest.config.js
0 → 100644
... | ... | @@ -7,7 +7,8 @@ |
"lint": "eslint .", | ||
"start": "node index.js", | ||
"dev": "nodemon index.js | pino-pretty", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"test": "jest --no-cache" | ||
}, | ||
"author": "Open-Xchange", | ||
"license": "CC-BY-NC-SA-2.5", | ||
... | ... | @@ -28,14 +29,23 @@ |
"devDependencies": { | ||
"eslint": "^7.20.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.4.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"husky": ">=6", | ||
"jest": "^27.1.0", | ||
"jest-extended": "^0.11.5", | ||
"jest-junit": "^12.2.0", | ||
"lint-staged": ">=10", | ||
"nodemon": "^2.0.7", | ||
"pino-pretty": "^4.7.1" | ||
}, | ||
"lint-staged": { | ||
"*.js": "eslint --cache --fix" | ||
}, | ||
"jest-junit": { | ||
"classNameTemplate": "{classname}", | ||
"titleTemplate": "{title}", | ||
"outputDirectory": "output/" | ||
} | ||
} |
spec/.eslintrc.js
0 → 100644
spec/empty_test.js
0 → 100644
src/app.js
0 → 100644
This diff is collapsed.
Please register or sign in to comment