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

todomvc-test

v1.0.2

Published

test todomvc app

Downloads

82

Readme

todomvc-test v1.0.2

Test TodoMVC app on the given url.

Supports node.js >= 6.

Usage

Install via npm:

$ npm install -g todomvc-test

This installs the command todomvc-test. You can invoke it like:

$ todomvc-test <url>

If your app is at localhost:8000 then, invoke it like:

$ todomvc-test http://localhost:8000

If your todomvc app conforms to the spec, it outputs like the below:

$ todomvc-test http://localhost:8000
Starting the test of TodoMVC app on http://localhost:8000

Options:
- speedMode: true
- laxMode: false


  TodoMVC
    When page is initially opened
      ✓ should focus on the todo input field
    No Todos
      ✓ should hide #main and #footer (134ms)
    New Todo
      ✓ should allow me to add todo items (455ms)
      ✓ should clear text input field when an item is added (185ms)
      ✓ should append new items to the bottom of the list (573ms)
      ✓ should trim text input (195ms)
      ✓ should show #main and #footer when items added (232ms)
    Mark all as completed
      ✓ should allow me to mark all items as completed (86ms)
      ✓ should correctly update the complete all checked state (219ms)
      ✓ should allow me to clear the completion state of all items (103ms)
      ✓ complete all checkbox should update state when items are completed / cleared (212ms)
    Item
      ✓ should allow me to mark items as complete (452ms)
      ✓ should allow me to un-mark items as complete (431ms)
    Editing
      ✓ should focus the input (40ms)
      ✓ should hide other controls when editing (55ms)
      ✓ should save edits on enter (302ms)
      ✓ should save edits on blur (357ms)
      ✓ should trim entered text (293ms)
      ✓ should remove the item if an empty text string was entered (207ms)
      ✓ should cancel edits on escape (234ms)
    Counter
      ✓ should display the current number of todo items (361ms)
    Clear completed button
      ✓ should display the correct text (107ms)
      ✓ should remove completed items when clicked (225ms)
      ✓ should be hidden when there are no items that are completed (268ms)
    Persistence
      ✓ should persist its data (634ms)
    Routing
      ✓ should allow me to display active items (194ms)
      ✓ should respect the back button (449ms)
      ✓ should allow me to display completed items (265ms)
      ✓ should allow me to display all items (364ms)
      ✓ should highlight the currently applied filter (166ms)


  30 passing (32s)

Background

This tool's test cases are basically extracted from the official TodoMVC's repository and should be compatible with them.

Options

See todomvc-test --help for more options.

License

MIT