JSPM

Found 2038 results for assertion helpers

chai-array

Array assertion helpers for the Chai assertion library

  • v0.0.2
  • 151.84
  • Published

assertate

TypeScript assertion helpers

  • v2.4.0
  • 151.57
  • Published

jsx-test-helpers

Helpers to easily write tests for React component/JSX code

  • v3.0.0
  • 149.49
  • Published

ava-spec

Drop-in BDD helpers for AVA test runner 🌠

  • v1.1.1
  • 119.83
  • Published

@lambrioanpm/assumenda-mollitia-harum

(NPM Package) Collection of various small helpers for javascript and typescript based projects, all tested and documented.

  • v1.0.0
  • 88.21
  • Published

@firanorg/mollitia-molestias-accusamus

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v10.13.142
  • 79.68
  • Published

assertion-error

Error constructor for test and validation frameworks that implements standardized AssertionError specification.

  • v2.0.1
  • 76.81
  • Published

chai

BDD/TDD assertion library for node.js and the browser. Test framework agnostic.

  • v6.0.1
  • 76.72
  • Published

mocha

simple, flexible, fun test framework

  • v11.7.1
  • 74.38
  • Published

lazy-ass

Lazy assertions without performance penalty

  • v2.0.3
  • 71.21
  • Published

ts-invariant

TypeScript implementation of invariant(condition, message)

  • v0.10.3
  • 71.03
  • Published

yeoman-assert

Assert utility from yeoman

  • v3.1.1
  • 64.02
  • Published

is-lite

A tiny javascript type testing tool

  • v1.2.1
  • 63.32
  • Published

ow

Function argument validation for humans

  • v2.0.0
  • 63.08
  • Published

ava

Node.js test runner that lets you develop with confidence.

  • v6.4.1
  • 60.28
  • Published

chai-url

A chai assertion plugin for working with urls

  • v1.0.4
  • 59.16
  • Published

geojson-equality

Check two valid geojson geometries for equality.

  • v0.2.1
  • 59.02
  • Published

empower-core

Power Assert feature enhancer for assert function/object

  • v1.2.0
  • 58.08
  • Published

qunit

The powerful, easy-to-use testing framework.

  • v2.24.1
  • 57.66
  • Published

typechecker

Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

  • v9.3.0
  • 57.61
  • Published

power-assert

Power Assert in JavaScript

  • v1.6.1
  • 56.70
  • Published

testcafe

Automated browser testing for the modern web development stack.

  • v3.7.2
  • 56.69
  • Published

empower

Power Assert feature enhancer for assert function/object

  • v1.3.1
  • 55.93
  • Published

@mapbox/fusspot

A tiny runtime library for type assertions

  • v0.8.1
  • 55.58
  • Published

espower-source

Power Assert instrumentor from source to source, with source-map

  • v2.3.0
  • 54.35
  • Published

chai-jest-snapshot

Chai assertion that provides Jest's snapshot testing

  • v2.0.0
  • 54.21
  • Published

yaassertion

Yet another JavaScript assertion/invariant library.

  • v1.0.2
  • 54.05
  • Published

espower

Power Assert feature instrumentor based on the ECMAScript AST

  • v2.1.2
  • 53.69
  • Published

@nightwatch/chai

A forked of Chai 5 which adds Promise support in order to work with Nightwatch commands.

  • v5.0.3
  • 53.38
  • Published

espower-loader

Power Assert feature instrumentor on the fly

  • v1.2.2
  • 53.31
  • Published

empower-assert

Convert assert to power-assert on ESTree AST

  • v2.0.0
  • 53.19
  • Published

chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript

  • v1.12.1
  • 52.76
  • Published

@dramaorg/delectus-culpa-reprehenderit

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

  • v3.5.94
  • 49.40
  • Published

spok

Checks a given object against a given set of specifications to keep you from writing boilerplate tests.

  • v1.5.5
  • 48.90
  • Published

git-branch-is

Assert that the name of the current branch of a git repository has a particular value.

  • v4.0.0
  • 48.80
  • Published

n4s

Assertion library for form validations

  • v5.0.28
  • 48.73
  • Published

unassert

Encourages programming with assertions by providing tools to compile them away

  • v2.0.2
  • 47.65
  • Published

unexpected

Extensible BDD assertion toolkit

  • v13.2.1
  • 47.50
  • Published

unassertify

Browserify transform for unassert: Encourages programming with assertions by providing tools to compile them away

  • v3.0.1
  • 46.93
  • Published

chai-colors

Color assertions for chai

  • v1.0.1
  • 46.61
  • Published

@hapi/code

assertion library

  • v9.0.3
  • 46.15
  • Published

@bahmutov/spok

Checks a given object against a given set of specifications to keep you from writing boilerplate tests.

  • v1.2.10
  • 46.04
  • Published

typy

Minimal JavaScript type checking library

  • v3.3.0
  • 46.03
  • Published

@stdlib/assert

Standard assertion utilities.

  • v0.3.3
  • 45.77
  • Published

@stdlib/assert-instance-of

Test whether a value has in its prototype chain a specified constructor as a prototype property.

  • v0.2.2
  • 45.68
  • Published

chai-xml

Xml assertions for Chai

  • v0.4.1
  • 45.61
  • Published

chai-almost

Extends chai with assertions that allow for floating point rounding errors

  • v1.0.1
  • 45.17
  • Published

assume

Expect-like assertions that works seamlessly in node and browsers

  • v2.3.0
  • 44.63
  • Published

chai-changes

Change assertions for the Chai assertion library

  • v1.3.6
  • 44.59
  • Published

@ffras4vnpm/facilis-iusto-qui

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 44.40
  • Published

chai-jquery

jQuery assertions for the Chai assertion library

  • v2.1.0
  • 44.24
  • Published

@marionebl/is

Type check values: `is.string('🦄') //=> true`

  • v0.5.1-0
  • 44.07
  • Published

@micromint1npm/excepturi-commodi-sunt

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 43.63
  • Published

unexpected-messy

Unexpected plugin for the messy library

  • v11.1.0
  • 43.61
  • Published

chai-backbone

Backbone assertions for the Chai assertion library

  • v0.9.4
  • 43.31
  • Published

earl

Ergonomic, modern and type-safe assertion library

  • v1.3.0
  • 42.62
  • Published

must

Testing and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.

  • v0.13.4
  • 42.48
  • Published

@bobyzgirlllnpm/voluptates-provident-consequatur

![npm](https://img.shields.io/npm/v/@bobyzgirlllnpm/voluptates-provident-consequatur?logo=npm) ![npm](https://img.shields.io/npm/dm/@bobyzgirlllnpm/voluptates-provident-consequatur?logo=npm)

  • v1.0.0
  • 42.22
  • Published

unexpected-sinon

This module extends the [Unexpected](https://github.com/unexpectedjs/unexpected) assertion library with integration for the [Sinonjs](http://sinonjs.org/) mocking library.

  • v11.1.0
  • 42.00
  • Published

chai-json

A chai plugin to validate json files

  • v1.0.0
  • 41.72
  • Published

chai-json-equal

Assert on equality of json representations in Chai

  • v0.0.1
  • 40.74
  • Published

chai-fs

Chai assertions for Node.js filesystem

  • v2.0.0
  • 40.74
  • Published

bats-assert

Common assertions for Bats

  • v2.2.0
  • 40.67
  • Published

@zibuthe7j11/at-doloribus-nihil

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 40.09
  • Published

unexpected-dom

DOM plugin for the unexpected assertion libary

  • v6.0.1
  • 39.70
  • Published

@odczynflnpm/dolorem-maiores-debitis

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 39.63
  • Published

@bobyzgirlllnpm/nobis-dolore-corporis

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 39.49
  • Published

unit.js

Simple, intuitive and flexible unit testing framework for javascript / Node.js (browser and server). Integrates awesome assertions libraries like Must.js, Should.js, Assert of Node.js, Sinon.js and other friendly features (promise, IoC, plugins, ...).

  • v2.1.1
  • 39.42
  • Published

@crabas0npm/laudantium-omnis-illum

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 39.09
  • Published

chai-wait-for

Drop-in replacement for expect that waits for the assertion to succeed (retries on an interval you choose, until a timeout you choose)

  • v3.1.1
  • 38.97
  • Published

chai-html

HTML assertions for Chai.

  • v3.1.0
  • 38.30
  • Published

poku

🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.

  • v3.0.2
  • 38.21
  • Published

@esm2cjs/is

Type check values. This is a fork of sindresorhus/is, but with CommonJS support.

  • v5.6.0
  • 38.04
  • Published

unexpected-map

Add support to Unexpected for testing Map instances

  • v3.1.0
  • 37.52
  • Published

unexpected-set

Add support to Unexpected for testing Set instances

  • v3.3.0
  • 37.50
  • Published

@lambrioanpm/voluptatibus-ducimus-eligendi

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 36.87
  • Published

cucumber-assert

An assertion library for cucumber.js providing cucumber compatible failures instead of exceptions

  • v2.0.1
  • 36.14
  • Published

joi-assert

Assert values using Joi schemas

  • v0.0.3
  • 36.01
  • Published

objectmodel

Strong Dynamically Typed Object Modeling for JavaScript

  • v4.4.5
  • 35.87
  • Published

@saoviettest/aspernatur-veniam-saepe-blanditiis

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v1.0.0
  • 35.07
  • Published

zora

the lightest yet the fastest javascript testing library

  • v6.0.0
  • 34.89
  • Published

sinon-chai-in-order

A Chai plugin providing assertions on the order of Sinon spy calls

  • v0.1.0
  • 34.89
  • Published

@xdanangelxoqenpm/libero-atque-dolore

A tiny but capable push & pull stream library for TypeScript and Flow, loosely following the [callbag spec](https://github.com/callbag/callbag)

  • v1.0.0
  • 34.75
  • Published

@wemnyelezxnpm/velit-tenetur-temporibus

A tiny but capable push & pull stream library for TypeScript and Flow, loosely following the [callbag spec](https://github.com/callbag/callbag)

  • v1.0.0
  • 34.41
  • Published

typed-validators

complex type validators that generate TypeScript and Flow types for you

  • v4.5.1
  • 34.28
  • Published

unexpected-knockout

This module extends the [Unexpected](https://github.com/unexpectedjs/unexpected) assertion library with integration for [Knockout](http://knockoutjs.org).

  • v6.1.0
  • 34.23
  • Published

cypress-intercept-search

A Cypress plugin to recursively search your intercepted requests/responses by key/value

  • v1.0.4
  • 33.80
  • Published

@a-2-c-2-anpm/iste-explicabo-maxime

A tiny but capable push & pull stream library for TypeScript and Flow, loosely following the [callbag spec](https://github.com/callbag/callbag)

  • v1.0.0
  • 33.78
  • Published

unexpected-stream

node.js streams plugin for the Unexpected assertion library

  • v5.1.0
  • 33.75
  • Published

its

Preconditions for safe coding

  • v1.0.2
  • 33.71
  • Published

wait-for-throwable

Simple utility to retry an erroring function until it succeeds

  • v1.0.1
  • 33.70
  • Published

extend-tape

Extends Tape with new assertions

  • v1.2.0
  • 33.58
  • Published

chaid

Id equality assertions for chai

  • v1.0.2
  • 32.99
  • Published

inspect.js

Powerful test inspection library

  • v1.13.1
  • 32.90
  • Published

respect

Comparison plugin for BDD assertion libraries (chai, should)

  • v0.2.3
  • 32.78
  • Published

chai-style

CSS Style assertions for elements, using Chai.js

  • v1.0.3
  • 32.66
  • Published

chai-jq

An alternate jQuery assertion library for Chai.

  • v0.0.9
  • 32.61
  • Published

jest-expect

Make jest expect more convenient.

  • v0.0.1
  • 32.34
  • Published

argument-contracts

A small and simple library for asserting argument are the correct types

  • v1.2.3
  • 32.12
  • Published

must-call

example.on('end', mustCall(() => {})); Check the callback function is called.

  • v1.0.0
  • 31.69
  • Published

@slimio/is

SlimIO is (JavaScript Primitives & Objects type checker)

  • v2.0.0
  • 31.47
  • Published

snap-shot

Jest-like snapshot feature for the rest of us + data-driven testing

  • v2.17.0
  • 31.21
  • Published

@browserstack/testcafe

Automated browser testing for the modern web development stack.

  • v1.8.6
  • 31.02
  • Published

earljs

Ergonomic, modern and type-safe assertion library

  • v0.2.3
  • 30.96
  • Published

@24vlh/ts-assert

Small footprint library that helps with typescript assertions.

  • v1.0.17
  • 30.77
  • Published

@micromint1npm/voluptate-labore-ipsa

[![Twitter API v2 badge](https://img.shields.io/endpoint?url=https%3A%2F%2Ftwbadges.glitch.me%2Fbadges%2Fv2)](https://developer.twitter.com/en/docs/twitter-api/early-access) [![Twitter API v1.1 badge](https://img.shields.io/endpoint?url=https%3A%2F%2Ftwba

  • v1.0.0
  • 30.59
  • Published

unexpected-image

Image metadata plugin for the Unexpected assertion library

  • v4.1.0
  • 30.16
  • Published

t6

Lightweight assertion testing framework

  • v1.2.1
  • 30.11
  • Published

browser-ava

Run ava tests in the browser

  • v2.3.31
  • 30.05
  • Published

@saoviettest/aperiam-tenetur-dolore-at

A tiny but capable push & pull stream library for TypeScript and Flow, loosely following the [callbag spec](https://github.com/callbag/callbag)

  • v1.0.0
  • 29.85
  • Published

gulp-espower

A gulp plugin for power-assert

  • v1.1.0
  • 29.68
  • Published

espowerify

Browserify transform for power-assert

  • v1.1.0
  • 29.39
  • Published

unexpected-magicpen

MagicPen plugin for the Unexpected assertion library

  • v3.0.0
  • 29.36
  • Published

@plugjs/expect5

Unit Testing for the PlugJS Build System ========================================

  • v0.6.66
  • 28.83
  • Published

chai-cheerio

Cheerio assertions for the Chai assertion library

  • v1.0.0
  • 28.68
  • Published

jest-callslike

A jest assertion that checks calls for count, order and informed parameters, all at once

  • v0.2.1
  • 28.55
  • Published

is-positive-int

Validate if a value is a positive integer between 0 & Number.MAX_SAFE_INTEGER

  • v1.24.0
  • 28.25
  • Published

borrowing

A utility library that provides borrowing mechanisms via assertion functions

  • v0.3.4
  • 27.99
  • Published

unassessed

Extensible type-aware assertion library

  • v0.3.1
  • 27.98
  • Published

guardz

A simple and lightweight TypeScript type guard library for runtime type validation.

  • v1.12.2
  • 27.73
  • Published

is-any-type

is-any-type simple functionality alternative to check data type references such as typeof and instanceof

  • v0.0.4
  • 27.45
  • Published

chai-jsx

JSX React Element assertions for chai

  • v1.0.1
  • 27.43
  • Published

mismatched

A composable matching/assertion/validation framework in Typescript that displays mismatches as diff trees

  • v4.0.1
  • 27.30
  • Published

ava-http

Async HTTP request wrapper

  • v1.0.0
  • 27.25
  • Published

cypress-should

Supercool assertion library for Cypress

  • v0.0.5
  • 27.15
  • Published

unexpected-immutable

Assert (pretty) equality of Immutable.js iterables with unexpected

  • v0.5.0
  • 27.11
  • Published

espower-cli

Command line tool for power-assert

  • v1.1.0
  • 26.75
  • Published

snapsnap

Tools for snapshotting, replaying, and mocking HTTP queries with Jest

  • v0.2.1
  • 26.72
  • Published

assert-env

Assert that specific environment variables exist.

  • v0.6.0
  • 26.72
  • Published