feat(test): mock-fs package
MODIFY
package-lock.json
package-lock.json
"integrity": "sha512-e74sM9W/4qqWB6D4TWV9FQk0WoHtX1X4FJpbjxucMSVJHtFjbQOH3H6yp+xno4br0AKG0wz/kPtaN599GUOvAg==",
"dev": true
},
+ "@types/mock-fs": {
+ "version": "3.6.30",
+ "resolved": "https://registry.npmjs.org/@types/mock-fs/-/mock-fs-3.6.30.tgz",
+ "integrity": "sha1-TYElQeh7I1dyYaWqlfcE3T0B5BA=",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
"@types/node": {
- "version": "10.0.8",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-10.0.8.tgz",
- "integrity": "sha512-MFFKFv2X4iZy/NFl1m1E8uwE1CR96SGwJjgHma09PLtqOWoj3nqeJHMG+P/EuJGVLvC2I6MdQRQsr4TcRduIow==",
+ "version": "10.1.3",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-10.1.3.tgz",
+ "integrity": "sha512-GiCx7dRvta0hbxXoJFAUxz+CKX6bZSCKjM5slq2vPp/5zwK01T4ibYZkGr6EN4F2QmxDQR76/ZHg6q+7iFWCWw==",
"dev": true
},
"@types/superagent": {
}
}
},
- "mime": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
- "dev": true
- },
"mime-db": {
"version": "1.33.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz",
"minimist": "0.0.8"
}
},
+ "mock-fs": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.5.0.tgz",
+ "integrity": "sha512-qqudNfOX7ZmX9vm1WIAU+gWlmxVNAnwY6UG3RkFutNywmRCUGP83tujP6IxX2DS1TmcaEZBOhYwDuYEmJYE+3w==",
+ "dev": true
+ },
"mock-req": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/mock-req/-/mock-req-0.2.0.tgz",
"requires": {
"ms": "2.0.0"
}
+ },
+ "mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "dev": true
}
}
},

MODIFY
package.json
package.json
},
"devDependencies": {
"@types/jest": "^22.2.3",
+ "@types/mock-fs": "^3.6.30",
"@types/supertest": "^2.0.4",
"husky": "^0.14.0",
"jest": "^22.4.3",
"lerna": "^2.11.0",
"lint-staged": "^7.1.1",
+ "mock-fs": "^4.5.0",
"mock-req": "^0.2.0",
"prettier": "1.12.1",
"rimraf": "^2.6.2",

feat(test): mock-fs package