npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mern-qa-automation

v1.0.0

Published

The intelligent, automated testing surface generator & local dashboard runner for MERN and React applications.

Readme

MERN-QA

The intelligent, automated testing surface generator & local dashboard runner for MERN and React applications.

npm version license

mern-qa is a developer-friendly CLI tool and interactive local dashboard that scans your MERN project, automatically maps frontend/backend code components, performs system preflight diagnostics, and generates complete test configurations and assertion boilerplates for Unit, Integration, E2E, Security, and Performance testing.


Key Features

  • 🔍 Intelligent Directory Scanning: Auto-detects frontend (React/Vite) and backend (Express) folders even in nested, sibling, or monorepo workspace setups.
  • 📂 AST Code Parsing: Traverses routes, middlewares, Mongoose models, and React components to build a map of what needs testing.
  • 🛡️ Pre-test Diagnostics: Validates .env variables, port conflicts, and local MongoDB connection issues, providing clear guides to resolve errors.
  • Automated Test Surface Generation: Injects configurations for Jest, Supertest, and Playwright with custom TypeScript/JavaScript configurations.
  • 🎭 Dynamic Faker.js Mock Data: Generates test templates with randomized realistic payloads to prevent database duplicate key constraints.
  • 💻 Local Web Dashboard (Hybrid Model): Start a clean local web GUI (npx mern-qa ui) to trigger runs, visualize code coverage, and audit logs safely.
  • 🚀 Advanced Automation:
    • Auto-generated GitHub Actions CI/CD workflows.
    • Outgoing external API intercepts (Stripe/SendGrid mocking).
    • Visual regression/layout testing snapshots.
    • Multi-format report exports (PDF, HTML, JUnit XML).
    • Parallel test execution optimization.

Installation

Add mern-qa as a development dependency in your root MERN workspace:

npm install --save-dev mern-qa

Quick Start

1. Initialize & Scan

Scan your MERN project, review diagnostics, and generate the configuration and test files:

npx mern-qa init

2. Launch Local Dashboard

To launch the interactive glassmorphic dashboard interface:

npx mern-qa ui

Open your browser at http://localhost:9000 to execute test suites and view live coverage reports.

3. Run Tests via CLI

Execute all configured test suites:

npx mern-qa run

Or run a specific test suite:

npx mern-qa run --only unit
npx mern-qa run --only api
npx mern-qa run --only e2e

Configuration (mern-qa.json)

The initialization command creates a configuration file in your root folder:

{
  "projectType": "MERN",
  "isTypeScript": true,
  "frontend": {
    "path": "./client",
    "framework": "vite-react",
    "port": 3000
  },
  "backend": {
    "path": "./server",
    "framework": "express",
    "entry": "./server/server.ts",
    "port": 5000
  }
}

License

This project is licensed under the MIT License - see the LICENSE file for details.