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

verifies

v0.1.3

Published

In browser testing framework

Readme

verifies: A Modern TypeScript Testing Toolkit

GitHub

verifies is a powerful and flexible testing toolkit designed to streamline unit and integration testing in TypeScript projects. It offers a comprehensive suite of utilities for writing robust and reliable tests with an intuitive, fluent API that will feel familiar to users of modern testing frameworks like Jest or Vitest.

Whether you're building a simple library or a complex application, verifies provides the tools you need to ensure your code is working as expected. From simple value assertions to complex mocking and spying, verifies has you covered.

Features

  • Intuitive expect API: A rich set of matchers for making assertions about your code.
  • Powerful Mocking: Easily create mock functions and modules to isolate your code under test.
  • Flexible Spying: Spy on object methods and properties to verify interactions.
  • Async Support: First-class support for testing asynchronous code with async/await.
  • Familiar Syntax: A testing API that is easy to learn and use, inspired by popular testing frameworks.

Browser Testing Features

verifies offers unique features for in-browser testing, providing a seamless and interactive testing experience that goes beyond traditional CLI-based test runners.

Interactive Debugging and Code Highlighting

verifies integrates directly with your browser's developer tools, allowing for interactive debugging of your tests. When a test fails or you set a breakpoint, you can inspect variables, step through your code, and utilize the full power of the browser's debugger. This is complemented by real-time code highlighting, making it easy to pinpoint the exact line of code being executed.

Debugging Code Highlight

In-Browser Test Case Navigation

Unlike many other test frameworks that primarily run in a command-line interface, verifies provides an intuitive in-browser interface for navigating through your test cases. You can easily jump between different test files and individual tests directly within your browser, making it highly efficient to focus on specific tests or re-run them without leaving the browser environment.

Visual Snapshot Testing with Accept/Reject Workflow

verifies extends snapshot testing to the browser, allowing you to visually compare and manage UI snapshots. When a snapshot test fails, verifies displays a side-by-side comparison of the expected and actual UI. You can then visually inspect the differences and, directly within the browser, choose to "Accept" the new snapshot (saving it as the new baseline) or "Reject" it (indicating a bug that needs fixing). This interactive workflow for managing snapshots is a significant advantage over CLI-only snapshot tools. The generated snapshot files are stored in the example/.snapshots/ directory within the project.

DOM Snapshot

Installation

To get started with verifies, install it as a dev dependency in your project:

npm install verifies --save-dev

Configuration

verifies is designed to work with modern build tools like Vite. Here is an example of how to configure Vite to use verifies for your tests:

// vite.config.mts
import { defineConfig } from 'vite'
import { snapshotPlugin } from 'vite-plugin-snapshot'

export default defineConfig({
  plugins: [snapshotPlugin()]
  /// other settings
})

To verify the snapshot server is running after configuration, visit http://localhost:5174/@snapshot-api/version in your browser. You should see version information if it's active.

Running the Example

To run the example tests, follow these steps:

  1. Clone the repository:

    git clone https://github.com/wongchichong/verifies.git
  2. Navigate to the example directory:

    cd verifies/example
  3. Install dependencies:

    pnpm i
  4. Run the tests:

    pnpm test

Usage

Here is a simple example of how to write a test with verifies:

// src/example.test.ts
import { expect, test } from 'verifies';

function sum(a: number, b: number) {
  return a + b;
}

test('should sum two numbers', () => {
  expect(sum(1, 2)).toBe(3);
});

API Documentation