JSPM

Found 2038 results for assertion

assertion-error

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

  • v2.0.1
  • 77.31
  • Published

chai

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

  • v6.0.1
  • 76.96
  • Published

mocha

simple, flexible, fun test framework

  • v11.7.1
  • 74.28
  • Published

lazy-ass

Lazy assertions without performance penalty

  • v2.0.3
  • 71.71
  • Published

ts-invariant

TypeScript implementation of invariant(condition, message)

  • v0.10.3
  • 70.95
  • Published

is-lite

A tiny javascript type testing tool

  • v1.2.1
  • 63.56
  • Published

ow

Function argument validation for humans

  • v2.0.0
  • 63.54
  • Published

ava

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

  • v6.4.1
  • 60.58
  • Published

geojson-equality

Check two valid geojson geometries for equality.

  • v0.2.1
  • 59.39
  • Published

qunit

The powerful, easy-to-use testing framework.

  • v2.24.1
  • 58.07
  • Published

empower-core

Power Assert feature enhancer for assert function/object

  • v1.2.0
  • 57.89
  • Published

typechecker

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

  • v9.3.0
  • 57.53
  • Published

testcafe

Automated browser testing for the modern web development stack.

  • v3.7.2
  • 57.05
  • Published

power-assert

Power Assert in JavaScript

  • v1.6.1
  • 56.39
  • Published

empower

Power Assert feature enhancer for assert function/object

  • v1.3.1
  • 56.14
  • Published

@mapbox/fusspot

A tiny runtime library for type assertions

  • v0.8.1
  • 55.93
  • Published

yaassertion

Yet another JavaScript assertion/invariant library.

  • v1.0.2
  • 54.52
  • Published

chai-jest-snapshot

Chai assertion that provides Jest's snapshot testing

  • v2.0.0
  • 54.49
  • Published

espower-source

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

  • v2.3.0
  • 54.24
  • Published

espower

Power Assert feature instrumentor based on the ECMAScript AST

  • v2.1.2
  • 53.78
  • Published

@nightwatch/chai

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

  • v5.0.3
  • 53.54
  • Published

espower-loader

Power Assert feature instrumentor on the fly

  • v1.2.2
  • 53.27
  • Published

chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript

  • v1.12.1
  • 52.90
  • Published

empower-assert

Convert assert to power-assert on ESTree AST

  • v2.0.0
  • 52.73
  • Published

git-branch-is

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

  • v4.0.0
  • 49.23
  • Published

n4s

Assertion library for form validations

  • v5.0.28
  • 49.11
  • Published

spok

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

  • v1.5.5
  • 48.88
  • Published

unassert

Encourages programming with assertions by providing tools to compile them away

  • v2.0.2
  • 48.13
  • Published

yeoman-assert

Assert utility from yeoman

  • v3.1.1
  • 48.08
  • Published

unexpected

Extensible BDD assertion toolkit

  • v13.2.1
  • 47.76
  • Published

unassertify

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

  • v3.0.1
  • 46.92
  • Published

@hapi/code

assertion library

  • v9.0.3
  • 46.68
  • Published

chai-colors

Color assertions for chai

  • v1.0.1
  • 46.59
  • Published

@bahmutov/spok

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

  • v1.2.10
  • 46.03
  • Published

@stdlib/assert

Standard assertion utilities.

  • v0.3.3
  • 46.03
  • Published

typy

Minimal JavaScript type checking library

  • v3.3.0
  • 45.86
  • 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.83
  • Published

chai-xml

Xml assertions for Chai

  • v0.4.1
  • 45.29
  • Published

chai-almost

Extends chai with assertions that allow for floating point rounding errors

  • v1.0.1
  • 44.97
  • Published

assume

Expect-like assertions that works seamlessly in node and browsers

  • v2.3.0
  • 44.57
  • Published

chai-changes

Change assertions for the Chai assertion library

  • v1.3.6
  • 44.39
  • Published

@marionebl/is

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

  • v0.5.1-0
  • 44.01
  • Published

chai-jquery

jQuery assertions for the Chai assertion library

  • v2.1.0
  • 43.92
  • Published

chai-url

A chai assertion plugin for working with urls

  • v1.0.4
  • 43.53
  • Published

unexpected-messy

Unexpected plugin for the messy library

  • v11.1.0
  • 43.46
  • Published

chai-backbone

Backbone assertions for the Chai assertion library

  • v0.9.4
  • 43.35
  • 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
  • 43.21
  • Published

earl

Ergonomic, modern and type-safe assertion library

  • v1.3.0
  • 42.64
  • 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.61
  • 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.04
  • Published

chai-json

A chai plugin to validate json files

  • v1.0.0
  • 41.42
  • Published

chai-fs

Chai assertions for Node.js filesystem

  • v2.0.0
  • 41.11
  • 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
  • 41.10
  • Published

bats-assert

Common assertions for Bats

  • v2.2.0
  • 40.73
  • Published

chai-json-equal

Assert on equality of json representations in Chai

  • v0.0.1
  • 40.45
  • Published

unexpected-dom

DOM plugin for the unexpected assertion libary

  • v6.0.1
  • 39.83
  • 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.46
  • 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
  • 39.09
  • Published

chai-html

HTML assertions for Chai.

  • v3.1.0
  • 38.42
  • Published

poku

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

  • v3.0.2
  • 38.34
  • Published

@esm2cjs/is

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

  • v5.6.0
  • 38.16
  • Published

unexpected-map

Add support to Unexpected for testing Map instances

  • v3.1.0
  • 37.24
  • Published

unexpected-set

Add support to Unexpected for testing Set instances

  • v3.3.0
  • 37.22
  • Published

cucumber-assert

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

  • v2.0.1
  • 35.98
  • Published

joi-assert

Assert values using Joi schemas

  • v0.0.3
  • 35.75
  • Published

objectmodel

Strong Dynamically Typed Object Modeling for JavaScript

  • v4.4.5
  • 35.62
  • Published

zora

the lightest yet the fastest javascript testing library

  • v6.0.0
  • 34.77
  • Published

sinon-chai-in-order

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

  • v0.1.0
  • 34.77
  • Published

typed-validators

complex type validators that generate TypeScript and Flow types for you

  • v4.5.1
  • 34.26
  • 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.11
  • Published

cypress-intercept-search

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

  • v1.0.4
  • 33.91
  • Published

unexpected-stream

node.js streams plugin for the Unexpected assertion library

  • v5.1.0
  • 33.79
  • Published

its

Preconditions for safe coding

  • v1.0.2
  • 33.75
  • Published

extend-tape

Extends Tape with new assertions

  • v1.2.0
  • 33.70
  • Published

wait-for-throwable

Simple utility to retry an erroring function until it succeeds

  • v1.0.1
  • 33.58
  • Published

must-call

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

  • v1.0.0
  • 33.50
  • Published

chai-array

Array assertion helpers for the Chai assertion library

  • v0.0.2
  • 33.15
  • Published

chaid

Id equality assertions for chai

  • v1.0.2
  • 32.87
  • Published

respect

Comparison plugin for BDD assertion libraries (chai, should)

  • v0.2.3
  • 32.81
  • Published

chai-jq

An alternate jQuery assertion library for Chai.

  • v0.0.9
  • 32.64
  • Published

chai-style

CSS Style assertions for elements, using Chai.js

  • v1.0.3
  • 32.43
  • Published

jest-expect

Make jest expect more convenient.

  • v0.0.1
  • 32.11
  • Published

argument-contracts

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

  • v1.2.3
  • 31.97
  • Published

@slimio/is

SlimIO is (JavaScript Primitives & Objects type checker)

  • v2.0.0
  • 31.57
  • Published

snap-shot

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

  • v2.17.0
  • 31.19
  • Published

@browserstack/testcafe

Automated browser testing for the modern web development stack.

  • v1.8.6
  • 31.12
  • Published

earljs

Ergonomic, modern and type-safe assertion library

  • v0.2.3
  • 31.00
  • Published

t6

Lightweight assertion testing framework

  • v1.2.1
  • 30.21
  • Published

unexpected-image

Image metadata plugin for the Unexpected assertion library

  • v4.1.0
  • 30.03
  • Published

browser-ava

Run ava tests in the browser

  • v2.3.31
  • 29.84
  • Published

ava-spec

Drop-in BDD helpers for AVA test runner 🌠

  • v1.1.1
  • 29.73
  • Published

gulp-espower

A gulp plugin for power-assert

  • v1.1.0
  • 29.54
  • Published

espowerify

Browserify transform for power-assert

  • v1.1.0
  • 29.49
  • Published

unexpected-magicpen

MagicPen plugin for the Unexpected assertion library

  • v3.0.0
  • 29.23
  • Published

@plugjs/expect5

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

  • v0.6.66
  • 28.92
  • Published

chai-cheerio

Cheerio assertions for the Chai assertion library

  • v1.0.0
  • 28.66
  • Published

jest-callslike

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

  • v0.2.1
  • 28.64
  • Published

is-positive-int

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

  • v1.23.0
  • 28.37
  • Published

unassessed

Extensible type-aware assertion library

  • v0.3.1
  • 27.88
  • Published

borrowing

A utility library that provides borrowing mechanisms via assertion functions

  • v0.3.4
  • 27.57
  • Published

guardz

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

  • v1.12.2
  • 27.53
  • Published

chai-jsx

JSX React Element assertions for chai

  • v1.0.1
  • 27.52
  • Published

ava-http

Async HTTP request wrapper

  • v1.0.0
  • 27.33
  • Published

is-any-type

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

  • v0.0.4
  • 27.25
  • Published

cypress-should

Supercool assertion library for Cypress

  • v0.0.5
  • 27.17
  • Published

mismatched

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

  • v4.0.1
  • 27.10
  • Published

unexpected-immutable

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

  • v0.5.0
  • 26.99
  • Published

assertate

TypeScript assertion helpers

  • v2.4.0
  • 26.89
  • Published

assert-env

Assert that specific environment variables exist.

  • v0.6.0
  • 26.80
  • Published

snapsnap

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

  • v0.2.1
  • 26.71
  • Published

espower-cli

Command line tool for power-assert

  • v1.1.0
  • 26.63
  • Published

chai-react

React assertions for the Chai assertion library

  • v4.0.0
  • 26.03
  • Published

hein

Assertion library written in TypeScript

  • v1.5.0
  • 25.43
  • Published

assert-argument

simple assertion module for checking function arguments

  • v2.0.0
  • 25.34
  • Published

rtvjs

Runtime Verification Library for browsers and Node.js.

  • v5.0.0
  • 25.27
  • Published

chai-date-proximity

Date comparison assertions for the Chai assertion library

  • v0.0.3
  • 24.54
  • Published

type-enforcer

A type enforcement library for javascript

  • v1.2.7
  • 24.45
  • Published

inspect.js

Powerful test inspection library

  • v1.13.1
  • 24.31
  • Published

expectations

jasmine-style 'expect' calls for mocha and other test frameworks

  • v1.0.0
  • 24.21
  • Published

jsx-test-helpers

Helpers to easily write tests for React component/JSX code

  • v3.0.0
  • 24.18
  • Published

hybrid-chai

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

  • v0.0.1
  • 24.10
  • Published

expect-runtime

expect assertion on the runtime

  • v0.10.1
  • 23.96
  • Published

chai-soft-assert

Chai helper to include soft assertions on chai package

  • v0.1.1
  • 23.88
  • Published