End to end testing (e2e) in NestJS

Loading

Reading Time: 4 minutes This is part 3 of Use TypeOrm Custom Repository in NestJS and this post is about end- to-end testing (e2e) of NestJS endpoints. In part one and part two, controllers, services and custom repositories are tested and they pass all the test cases. The final step is to validate HTTP requests between frontend and backend … Read more

Add code coverage in Jest in Vue project

Loading

Reading Time: < 1 minute Github: https://github.com/railsstudent/vue-2048 1) Assume Vue project is created by vue-cli 3 and unit testing is enabled 2) Add code coverage in jest configuration in package.json “jest”: { “moduleFileExtensions”: [ “js”, “jsx”, “json”, “vue” ] … // Delete the rest for brevity } 3) Append the following configurations in jest configuration “collectCoverage”: true, “collectCoverageFrom”: [ “src/**/*.vue”, … Read more