init jest xml testing
scope out axios easy soap calls to unit test them mock expected xml data use mock data for parsing operations
Showing
- mocks/responseTechnicalData.js 100 additions, 0 deletionsmocks/responseTechnicalData.js
- package.json 4 additions, 1 deletionpackage.json
- src/index.js 21 additions, 33 deletionssrc/index.js
- src/parsing.test.js 1 addition, 0 deletionssrc/parsing.test.js
- src/soapAxios.js 47 additions, 0 deletionssrc/soapAxios.js
- src/soapAxios.test.js 23 additions, 0 deletionssrc/soapAxios.test.js
- yarn.lock 6908 additions, 5667 deletionsyarn.lock
mocks/responseTechnicalData.js
0 → 100644
... | ... | @@ -29,6 +29,7 @@ |
"dev": "cozy-konnector-dev", | ||
"standalone": "cozy-konnector-standalone", | ||
"pretest": "npm run clean", | ||
"test": "jest", | ||
"clean": "rm -rf ./data", | ||
"build": "webpack", | ||
"lint": "eslint --fix .", | ||
... | ... | @@ -49,6 +50,8 @@ |
"cozy-konnector-build": "1.3.1", | ||
"eslint-config-cozy-app": "1.3.3", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"git-directory-deploy": "1.5.1" | ||
"git-directory-deploy": "1.5.1", | ||
"jest": "^28.0.3", | ||
"jest-xml-matcher": "^1.2.0" | ||
} | ||
} |
src/parsing.test.js
0 → 100644
src/soapAxios.js
0 → 100644
src/soapAxios.test.js
0 → 100644
This diff is collapsed.
Please register or sign in to comment