All Projects → jmcdo29 → Testing Nestjs

jmcdo29 / Testing Nestjs

Licence: mit
A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Testing Nestjs

Examples
Examples of Mock Service Worker usage with various frameworks and libraries.
Stars: ✭ 163 (-76.2%)
Mutual labels:  graphql, rest, examples, interceptor
Strapi
🚀 Open source Node.js Headless CMS to easily build customisable APIs
Stars: ✭ 41,786 (+6000.15%)
Mutual labels:  graphql, rest, hacktoberfest
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (+42.77%)
Mutual labels:  graphql, nestjs, cqrs
Nestjs Cqrs Starter
NestJS CQRS Microservices Starter Project
Stars: ✭ 80 (-88.32%)
Mutual labels:  graphql, nestjs, cqrs
Nest User Auth
A starter build for a back end which implements managing users with MongoDB, Mongoose, NestJS, Passport-JWT, and GraphQL.
Stars: ✭ 145 (-78.83%)
Mutual labels:  graphql, mongo, nestjs
Core
The server component of API Platform: hypermedia and GraphQL APIs in minutes
Stars: ✭ 2,004 (+192.55%)
Mutual labels:  graphql, rest, hacktoberfest
Vulcain
Fast and idiomatic client-driven REST APIs.
Stars: ✭ 3,190 (+365.69%)
Mutual labels:  graphql, rest, hacktoberfest
Crudl
CRUDL is a backend agnostic REST and GraphQL based admin interface
Stars: ✭ 438 (-36.06%)
Mutual labels:  graphql, rest
Goa
Design-based APIs and microservices in Go
Stars: ✭ 4,493 (+555.91%)
Mutual labels:  rest, hacktoberfest
Graphql Engine
Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
Stars: ✭ 24,845 (+3527.01%)
Mutual labels:  graphql, hacktoberfest
Openrecord
Make ORMs great again!
Stars: ✭ 474 (-30.8%)
Mutual labels:  graphql, rest
Graphqlmap
GraphQLmap is a scripting engine to interact with a graphql endpoint for pentesting purposes.
Stars: ✭ 434 (-36.64%)
Mutual labels:  graphql, hacktoberfest
Udash Core
Scala framework for building beautiful and maintainable web applications.
Stars: ✭ 405 (-40.88%)
Mutual labels:  rest, hacktoberfest
Swagger Ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
Stars: ✭ 21,279 (+3006.42%)
Mutual labels:  rest, hacktoberfest
Vue Crud X
Vue+Express Cookbook & CRUD Component (with Vite and Web Components)
Stars: ✭ 393 (-42.63%)
Mutual labels:  rest, hacktoberfest
Example Ios Apps
 A curated list of Open Source example iOS apps developed in Swift. An amazing list for people who are beginners and learning ios development and for ios developers who need any example app or feature.
Stars: ✭ 461 (-32.7%)
Mutual labels:  hacktoberfest, examples
Admin On Rest
A frontend framework for building admin SPAs on top of REST services, using React and Material Design.
Stars: ✭ 392 (-42.77%)
Mutual labels:  graphql, rest
Cookiecutter Django Vue
Cookiecutter Django Vue is a template for Django-Vue projects.
Stars: ✭ 462 (-32.55%)
Mutual labels:  graphql, hacktoberfest
Nestjs
A collection of badass modules and utilities to help you level up your NestJS applications 🚀
Stars: ✭ 475 (-30.66%)
Mutual labels:  graphql, nestjs
Apisprout
Lightweight, blazing fast, cross-platform OpenAPI 3 mock server with validation
Stars: ✭ 519 (-24.23%)
Mutual labels:  hacktoberfest, examples

testing-nestjs

Status

Commitizen friendly Continuous Integration TestingCoffee

A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!

Project Structure

Each folder is a fully functional Nest application on its own. All you need to do after cloning the repository is move into the folder, install the dependencies, and test! Or you could just, you know, look at the test on GitHub too, no big deal.

Motivation

I've noticed a lot of people seem to get stuck on testing, and how to do it using the utilities given to us by Nest. Hopefully with a community driven repository of tests it will help others get a better understanding and feel for how to get tests running.

Please Note

This is not necessarily the Nest canonical way to test an application, nor is it the only way in any scenario. I will do my best to show different ways to run tests, but I will more than likely miss certain ways of running the tests, whether it is mocking in a specific way or otherwise. Again, this is a community maintained project and not a part of the official documentation. If you find other ways to test applications, great, I'd love to see them, but please do not think this is the only way.

Running the Project

  1. git clone https://github.com/jmcdo29/testing-nestjs.git
  2. cd testing-nestjs/<folderName>
  3. npm install OR yarn add
  4. npm run test OR yarn test

Contributing

Did I miss your favorite topic? Did I miss out on something you absolutely need tested? Well then open an issue, or better yet, a pull request! I'll be happy to look over any topics and try to help figure out how to test them or to merge any PRs that add to the value of the repository. If you do end up making a pull request, please add a screenshot of the test coverage so others can see how well the tests run. The complex-sample branch has a good example.

Change log

The change log can be found on the Releases page.

Authors and license

Jay McDoniel and contributors. Thanks to everyone who's helping with this effort!

MIT License, see the included License.md file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].