GitShow/Rich-Harris/tape-modern
Rich-Harris

tape-modern

Minimum viable testing framework

by Rich-Harris
Star on GitHubForknpm

TypeScript

62 stars2 forks2 contributorsQuiet · 4y agoSince 2018

Meet the team

See all 2 on GitHub →
Rich-Harris
Rich-Harris11 contributions
goto-bus-stop
goto-bus-stop1 contribution

Recent PRs & issues

Quiet · 1 in progress · Last activity 4y ago
See all on GitHub →
cekvenich2
what tape runner should I use and how?OpenIssue

For example this does not work as a script: "test": "npx colortape -- --verbose 'test/*/.js' "

cekvenich2 · 4y ago

Recent fixes

View closed PRs →
goto-bus-stop
Fix assertion numberingMergedPR

In TAP, each assertion is counted on its own rather than as being part of a larger test. tape-modern was printing the numbers of the calls though. Previously, assertions were logged with the index of their surrounding call. If you use multiple asserts in a single test, you get output like: This would be interpreted as a failed test by compliant TAP parsers, because the planning line lists different test numbers than the test lines do. With this patch, the output is:

goto-bus-stop · 7y ago
styfle
Question: Drop-in replacement for tape?ClosedIssue

Is the API for tape-modern identical to tape? If not, which exports are missing?

styfle · 8y ago
jamen
Async?ClosedIssue

Hello @Rich-Harris! I tried using this package, but because it's missing or , I don't think it's possible to test async stuff like it claims. Here is the situation: 1. Testing a HTTP request library. Creates a dummy server that receives a request from the library, and sends a dummy response. 2. I write assertions in both the dummy server and dummy response. These are asynchronous areas. 3. When running the test, it exits without doing any assertions. I assume because it doesn't know how many assertions to expect ahead of time (purpose of ) and there is no mechanism to tell it when to end (purpose of ) It was easy to swap in regular . But I'm curious, am I using the package wrong or does the package have faulty design?

jamen · 8y ago
Structured data for AI agents

Repository: Rich-Harris/tape-modern. Description: Minimum viable testing framework Stars: 62, Forks: 2. Primary language: TypeScript. Open PRs: 1, open issues: 1. Last activity: 4y ago. Top contributors: Rich-Harris, goto-bus-stop.

·@ofershap

Replace github.com with gitshow.dev