# jmcdo29/testing-nestjs

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!

Repository: https://github.com/jmcdo29/testing-nestjs
Canonical: https://ross.abutalabs.com/products/testing-nestjs
Language: TypeScript
License: MIT
License Family: permissive
Topics: hacktoberfest, nestjs, testing, examples, pipes, interceptor, rest, cqrs, graphql, typeorm, mongo
Last push: 2025-04-27T21:52:37+00:00

## Health v2 (maintenance only)
Score: 31/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 18, release rhythm 8, longevity 100
- inputs: {"age_days": 2596, "days_push": 493, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3014, forks 377 (observed 2026-08-28T04:07:37.929472+00:00)

## What it is
A community-maintained repository of example NestJS applications demonstrating testing techniques including unit tests, integration tests, and e2e tests. Each folder is a self-contained Nest app covering pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more.

## Use cases
- learn how to test nestjs applications
- examples of unit tests for nestjs pipes and interceptors
- how to write e2e tests for a nestjs graphql api
- mocking dependencies in nestjs tests
- integration testing nestjs with typeorm and mongo
- nest testing utilities examples

## When to choose
- you're stuck on testing NestJS apps and want concrete, runnable examples
- you want to see multiple testing approaches for pipes, filters, interceptors, GraphQL, or databases
- you prefer learning from code you can clone and run

## When to avoid
- you need official, canonical NestJS testing guidance - this is community-maintained and explicitly not official documentation
- you need a testing library or tool rather than example code
- you don't use the NestJS framework

## Facets
- artifact type: learning-resource
- maturity: active
- function: testing, e2e-testing, mocking
- domain: testing, developer-tools, web-development, backend
- platform: cross-platform
- tags: nestjs, unit-testing, integration-testing, examples, graphql, typeorm, mongodb, pipes, interceptors, cqrs, nodejs, typescript

## Member repositories
- jmcdo29/testing-nestjs (main) score 31

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.929472+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:30:10.601132+00:00, confidence not recorded.
  - readme: https://github.com/jmcdo29/testing-nestjs (fetched 2026-08-28T04:07:37.929472+00:00, sha 0509d1031c03)
- Data as of 2026-08-30T08:39:29.467469+00:00.
