TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A JavaScript test runner that works in any JavaScript runtime

2 pointsby turbletyover 2 years ago

1 comment

turbletyover 2 years ago
Hi. I built a test runner that doesn&#x27;t have a lot of the features other test runners have.<p>Why?<p>Most test runners include a lot of features and do a lot of magic.<p>They automatically (magically?):<p>- search and include test files<p>- run the tests for you<p>- inject test methods like `describe`&#x2F;`it`<p>- add a hooks system for managing `before`&#x2F;`after` events<p>- use cli&#x27;s to manage the auto inclusion of the test runner<p>- use event systems for capturing when tests fail&#x2F;succeed&#x2F;finish<p>These features can create a great foundation for writing and running tests, but they also come with their own management and overhead.<p>This library aims to provide a bare bones test runner with zero magic.<p>As such, it can run in a web browser, nodejs, deno or any other javascript interpreter.<p>It&#x27;s also pretty fast, small and has zero dependencies;