File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2626 "dependencies" : {
2727 "cwd" : " 0.10.0" ,
2828 "debug" : " 4.1.1" ,
29- "mongodb" : " 3.2.7" ,
3029 "mongodb-memory-server" : " 5.1.5"
3130 },
31+ "peerDependencies" : {
32+ "mongodb" : " 3.x.x"
33+ },
3234 "devDependencies" : {
3335 "@shelf/eslint-config" : " 0.3.10" ,
34- "eslint" : " 5.16.0 " ,
35- "husky" : " 2.7 .0" ,
36+ "eslint" : " 6.0.1 " ,
37+ "husky" : " 3.0 .0" ,
3638 "jest" : " 24.8.0" ,
37- "lint-staged" : " 8.2.1" ,
39+ "lint-staged" : " 9.0.2" ,
40+ "mongodb" : " 3.2.7" ,
3841 "prettier" : " 1.18.2"
3942 },
4043 "jest" : {
Original file line number Diff line number Diff line change 1010$ yarn add @shelf/jest-mongodb --dev
1111```
1212
13+ Make sure ` mongodb ` is installed in the project as well, as it's required as a peer dependency.
14+
1315### 1. Create ` jest.config.js `
1416
1517``` js
You can’t perform that action at this time.
0 commit comments