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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nx-test

v1.1.7

Published

Test till it hurts!

Downloads

5

Readme

A simple library for creating self documenting tests.

A first feature can be created that uses scenario state

  • < 1ms given I have a first feature where I set a message ✔

  • < 1ms when I update the text in the state property ✔

  • < 1ms then the value stored is updated ✔

    A child scenario of Scenario 1 can be created

    • < 1ms given that I have created a child feature of Scenario 1 ✔

    • < 1ms when the test runs ✔

A first feature can be created that uses scenario state

I can pass initial state params and modify and use them

  • < 1ms given that the state is set to it's initial values ✔

  • < 1ms when I change the values ✔

A simple library for creating self documenting tests.

This is a broken feature

This is the failing scenario

  • < 1ms given that I have a feature that is broken ✔

  • < 1ms when when the failing scenario is tested ✔

This is a broken feature

Stand alone assertion tests (unit testing) can be executed for a feature.

1ms assert True is equal to true ✔

< 1ms assert 12 - 4 = 8 ✔

< 1ms assert The first 4 letters of heroic are hero ✔

Stand alone assertion tests (unit testing) can be executed for a scenario.

  • < 1ms assert False is not equal to true ✔

  • < 1ms assert 12 - 8 = 4 ✔

  • < 1ms assert the first 4 letters of banter are bant ✔

  • assert this is an assertion that is left pendingpending"pending"

  • < 1ms assert this is an assertion that should also be tested despite the previous one being pending ✔

  • assert this is an assertion that fails ✘ "failed"

  • < 1ms assert this is an assertion that should pass despite the previous one failing ✔

  • 534ms assert this test takes less than a second ✔

Stand alone assertion tests (unit testing) can be executed for a feature.

Pending "given" and "when" tests stop tests until the next scenario starts

A scenario starts

  • given This one is pendingpending"pending"

  • when this is run it is pending too, despite returning truepending"pending"

  • then this is also pending despite returning falsepending"pending"

Pending "given" and "when" tests stop tests until the next scenario starts