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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hugsylabs/plugin-test

v0.0.7

Published

Test execution support for Hugsy - testing frameworks and coverage

Readme

@hugsylabs/plugin-test

Test execution support plugin for Hugsy that focuses solely on testing operations.

Features

  • 🧪 Multiple testing frameworks support (Jest, Vitest, Mocha)
  • 🎭 E2E testing tools (Playwright, Cypress)
  • 📊 Coverage tools integration
  • 🔧 Test configuration management
  • 📁 Test file patterns and directories
  • ⚡ Test execution hooks

Installation

npm install @hugsylabs/plugin-test

Usage

Add to your .hugsyrc.json:

{
  "plugins": ["@hugsylabs/plugin-test"]
}

What It Adds

Permissions

Allowed operations:

  • Jest testing (jest, npm test)
  • Vitest testing (vitest, vitest run)
  • Mocha testing (mocha)
  • Playwright E2E (playwright test)
  • Cypress E2E (cypress run)
  • Coverage tools (nyc, c8)
  • Test file editing (.test.js, .spec.ts, etc.)
  • Test configuration files
  • Test utilities and helpers

Ask before:

  • Removing coverage directories
  • Cleaning test output directories

Hooks

Pre-operation:

  • Reminds to run tests after editing code files
  • Checks for package.json before running tests

Post-operation:

  • Confirms test completion
  • Notifies about coverage report generation
  • Confirms test file creation

Supported Testing Frameworks

Unit Testing

  • Jest - Popular testing framework by Facebook
  • Vitest - Blazing fast unit test framework
  • Mocha - Feature-rich JavaScript test framework

E2E Testing

  • Playwright - Cross-browser automation
  • Cypress - Fast, easy and reliable testing

Coverage Tools

  • nyc - Istanbul's command line interface
  • c8 - Native V8 code coverage

Single Responsibility

This plugin focuses solely on test execution:

  • Running test suites
  • Managing test files
  • Coverage reporting
  • Test configuration

It does NOT handle:

  • Linting (use @hugsylabs/plugin-lint)
  • Building (use @hugsylabs/plugin-build)
  • Type checking (use @hugsylabs/plugin-typescript)
  • Code formatting (use @hugsylabs/plugin-format)

License

MIT