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

@gotit-qa/qa-mcp

v1.0.16

Published

Puppeteer Test Automation Framework with reporting and video recording

Downloads

38

Readme

Test Automation Framework

A lightweight, straightforward test automation framework using Puppeteer with video recording and detailed reporting capabilities.

Features

  • 📊 Simplified Design - Direct, functional approach without complex layers
  • 📝 HTML Reports - Detailed test execution reports through Jest
  • 🎥 Video Recording - Records videos of test execution
  • 📸 Screenshots - Automatically captures screenshots during test failures
  • 🏃 Clean API - Simple function-based API for testing

Prerequisites

  • Node.js (v14 or later)
  • npm or yarn package manager

Installation

# Install dependencies
npm install

Project Structure

puppeteer-workspace/
├── src/
│   ├── helpers/           # Utility functions and test middleware
│   │   └── testUtils.ts   # Core test utilities and middleware pattern
│   ├── tests/             # Test files
│   │   ├── google-simple.test.ts   # Sample Google search test
│   │   └── todo-simple.test.ts     # Sample TodoMVC test
├── reports/               # Test reports and screenshots
│   └── screenshots/       # Screenshots from test runs
├── videos/                # Recorded videos
├── jest.config.js         # Jest configuration
├── tsconfig.json          # TypeScript configuration
└── package.json           # Project dependencies and scripts

Creating a New Test

Creating a test is straightforward and doesn't require complex abstractions:

import { runTest, navigateTo, clickElement, typeText, TestContext } from '../helpers/testUtils';

// Define your test
test('should perform a task', async () => {
  await runTest('My Test Name', async (page) => {
    // Navigate to a website
    await navigateTo(page, 'https://example.com');
    
    // Interact with page elements
    await typeText(page, '.search-input', 'search term');
    await clickElement(page, '.submit-button');
    
    // Make assertions
    const title = await page.title();
    expect(title).toContain('Expected Text');
  }, {
    // Test configuration options
    headless: true,
    slowMo: 50,
    recordVideo: true,
    timeout: 30000
  });
});

Running Tests

# Run all tests
npx jest

# Run a specific test file
npx jest path/to/test-file.test.ts

# Clean reports and videos
npm run clean

Test Reports

After running the tests, HTML reports will be available in the reports directory. Open the test-report.html file in a browser to view detailed test results.

Video Recordings

Test execution videos are automatically saved to the videos directory. Each video is named with the test name and timestamp.

Screenshots

Screenshots are automatically captured when tests fail and saved in the reports/screenshots directory.

Advantages of This Approach

  1. Simplicity - Function-based approach is easier to understand and maintain
  2. No Complex Abstractions - Direct access to Puppeteer API without multiple layers
  3. Middleware Pattern - Clean way to handle test setup and teardown
  4. Focused Tests - Tests focus on actions and assertions, not on complex page objects
  5. Easier Debugging - Simpler stack traces and more direct error messages

Troubleshooting

  • Issue: Tests fail with timeout errors Solution: Increase the timeout value in the test options

  • Issue: Videos not recording Solution: Check if the videos directory exists and has proper permissions

  • Issue: Element not found errors Solution: Use appropriate waits or increase timeouts

License

MIT