{"id":13519272,"url":"https://github.com/prantlf/tehanu","last_synced_at":"2025-06-21T18:05:46.155Z","repository":{"id":57153026,"uuid":"365626803","full_name":"prantlf/tehanu","owner":"prantlf","description":"Blazingly fast, tiny and simple JavaScript test framework with pluggable reporters and an optional runner.","archived":false,"fork":false,"pushed_at":"2024-05-26T18:05:53.000Z","size":703,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T18:04:45.610Z","etag":null,"topics":["test","test-framework","test-harness","test-runner","testing","testing-framework","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-08T23:02:40.000Z","updated_at":"2024-05-26T18:05:53.000Z","dependencies_parsed_at":"2024-10-02T02:35:18.297Z","dependency_job_id":"0d38a3d8-4fe9-425e-abf0-ebf5a69fb08f","html_url":"https://github.com/prantlf/tehanu","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/prantlf/tehanu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Ftehanu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Ftehanu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Ftehanu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Ftehanu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/tehanu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Ftehanu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261170426,"owners_count":23119513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["test","test-framework","test-harness","test-runner","testing","testing-framework","unit-testing"],"created_at":"2024-08-01T05:01:56.644Z","updated_at":"2025-06-21T18:05:41.144Z","avatar_url":"https://github.com/prantlf.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## Test Harness Ultra\n\n[![Latest version](https://img.shields.io/npm/v/tehanu)](https://www.npmjs.com/package/tehanu)\n[![Dependency status](https://img.shields.io/librariesio/release/npm/tehanu-teru)](https://www.npmjs.com/package/tehanu-teru)\n\n[Blazingly fast](./benchmarks#readme), tiny and simple JavaScript test framework for both Node.js and the browser with pluggable reporters and an optional runner.\n\n* Tiny size - 2.04 kB minified, 1 kB gzipped, 886 B brotlied (UMD).\n* Zero dependencies.\n* ESM, CJS and UMD support for Node.js and web browser.\n* TypeScript declarations included.\n\nSee the documentation of the [packages](#packages) for more information.\n\n## Synopsis\n\nCJS:\n\n```js\nconst test = require('tehanu')('sum'),\n      { equal } = require('assert'),\n      sum = require('./sum')\n\ntest('one number', () =\u003e equal(sum(1), 1))\ntest('two numbers', () =\u003e equal(sum(1, 2), 3))\n```\n\nESM in Node.js:\n\n```js\nimport tehanu from 'tehanu'\nimport { equal } from 'assert'\nimport sum from './sum.mjs'\n\nconst test = tehanu('sum')\n\ntest('one number', () =\u003e equal(sum(1), 1))\ntest('two numbers', () =\u003e equal(sum(1, 2), 3))\n```\n\nESM in Node.js (unnamed suite):\n\n```js\nimport test from 'tehanu/suite'\nimport { equal } from 'assert'\nimport sum from './sum.mjs'\n\ntest('one number', () =\u003e equal(sum(1), 1))\ntest('two numbers', () =\u003e equal(sum(1, 2), 3))\n```\n\nUMD in browser:\n\n```html\n\u003cscript src=\"node_modules/tehanu/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/tehanu-repo-tape/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/tehanu-teas/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"sum.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const test = tehanu('sum'),\n        { equal } = tehanuTeas\n\n  test('one number', () =\u003e equal(sum(1), 1))\n  test('two numbers', () =\u003e equal(sum(1, 2), 3))\n\u003c/script\u003e\n```\n\nESM in browser:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import test from './node_modules/tehanu/dist/suite.min.mjs?name=sum'\n  import './node_modules/tehanu-repo-tape/dist/index.min.mjs'\n  import { equal } from './node_modules/tehanu-teas/dist/index.min.mjs'\n  import sum from './sum.mjs'\n\n  test('one number', () =\u003e equal(sum(1), 1))\n  test('two numbers', () =\u003e equal(sum(1, 2), 3))\n\u003c/script\u003e\n```\n\n## Installation\n\nYou can install the [test harness](./packages/index#readme), typically with a chosen reporter like the [colourful console](./packages/coco#readme) or [tap](./packages/tape#readme), and optionally with the [command-line runner](./packages/teru#readme), using your favourite Node.js package manager:\n\n```sh\nnpm i -D tehanu tehanu-repo-coco tehanu-teru\nyarn add -D tehanu tehanu-repo-coco tehanu-teru\npnpm i -D tehanu tehanu-repo-coco tehanu-teru\n```\n\n## Packages\n\n* [tehanu](./packages/index#readme) - a framework for creation and execution of test suites.\n* [teas](./packages/teas#readme) - a set of assertion methods compatible with the [built-in `assert` module] usable in both Node.js and the browser.\n* [tenbo](./packages/tenbo#readme) - an experimental test runner for tests written with `tehanu` in the web browser.\n* [teru](./packages/teru#readme) - an optional test runner for tests written with `tehanu`.\n* [coco](./packages/coco#readme) - a colourful console reporter.\n* [tape](./packages/tape#readme) - a reporter compatible with the [TAP] format specification.\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code using `npm test`.\n\n## License\n\nCopyright (c) 2021-2024 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[built-in `assert` module]: https://nodejs.org/api/assert.html\n[TAP]: https://node-tap.org/tap-protocol/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Ftehanu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Ftehanu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Ftehanu/lists"}