{"id":13656584,"url":"https://github.com/volument/baretest","last_synced_at":"2025-04-04T13:07:10.399Z","repository":{"id":40784679,"uuid":"238651468","full_name":"volument/baretest","owner":"volument","description":"An extremely fast and simple JavaScript test runner.","archived":false,"fork":false,"pushed_at":"2021-02-11T02:39:53.000Z","size":21,"stargazers_count":424,"open_issues_count":11,"forks_count":15,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-10-01T05:17:34.298Z","etag":null,"topics":["bdd","javascript-test-runner","jest","minimalist","mocha","tap","tape","tdd","test-framework","test-runner","testing-tool","web-ser"],"latest_commit_sha":null,"homepage":null,"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/volument.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-06T09:27:07.000Z","updated_at":"2024-09-04T13:21:42.000Z","dependencies_parsed_at":"2022-09-11T17:43:18.617Z","dependency_job_id":null,"html_url":"https://github.com/volument/baretest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volument%2Fbaretest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volument%2Fbaretest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volument%2Fbaretest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volument%2Fbaretest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volument","download_url":"https://codeload.github.com/volument/baretest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865145,"owners_count":16555931,"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":["bdd","javascript-test-runner","jest","minimalist","mocha","tap","tape","tdd","test-framework","test-runner","testing-tool","web-ser"],"created_at":"2024-08-02T05:00:24.236Z","updated_at":"2024-10-10T22:41:38.469Z","avatar_url":"https://github.com/volument.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Packages"],"sub_categories":["Testing \u0026 Coverage"],"readme":"\n\u003cimg src=\"https://volument.com/blog/img/baretest/logomark.png\" width=\"400\"\u003e\n\n*Baretest* is an extremely simple JavaScript test runner. It has a tiny footprint, near-instant performance, and a brainless API. It makes testing tolerable.\n\n\u003cimg src=\"https://volument.com/blog/img/baretest/tester-matrix-big.png\" alt=\"How Baretest fits on the testing landscape\" width=\"600\"\u003e\n\n### Install\n\n```\nnpm install --save-dev baretest\n```\n\nWith [pnpm](https://pnpm.js.org)\n\n```\npnpm install --save-dev baretest\n```\n\n#### Links\n\n[Documentation](https://volument.com/baretest)\n\n... [Getting started](https://volument.com/baretest#getting-started)\n\n... [API reference](https://volument.com/baretest#api-reference)\n\n... [FAQ](https://volument.com/baretest#faq)\n\n\n### Why Baretest?\nWe constantly hit `CMD + B` on *Sublime Text* to test a function we are actively working on. We do this all the time, sometimes hundreds of times a day. With Jest, each of these runs would take seconds, but Baretest runs under 100ms.\n\n\u003cimg src=\"https://volument.com/blog/img/baretest/sublime.png\" alt=\"A typical setup in Sublime Text\" width=\"600\"\u003e\n\n\u003cimg src=\"https://volument.com/blog/img/baretest/render.gif\" alt=\"Comparing Jest vs Baretest\" width=\"600\"\u003e\n\n\nAnother reason for building Baretest was to have an extremely simple API. Typically we only use `test()` and the Node's built-in `assert.equals()` methods to run our tests. We've never needed automatic re-ordering, file watchers, \"mocking\" or \"snapshotting\".\n\n\n``` javascript\nconst test = require('baretest')('My app'),\n  assert = require('assert'),\n  app = require('my-app')\n\ntest('add user', async function() {\n  const user = await app.addUser('test@cc.com')\n  assert.equals(user.name, 'Test')\n})\n\ntest('reject duplicate emails', async function() {\n  await assert.rejects(async function() {\n    await app.addUser('duplicate@address.com')\n  })\n})\n\n// ...\n\n!(async function() {\n  await test.run()\n})()\n```\n\nWe think a good test runner stays out of your way. We want to focus on the task at hand and not deal with the complexities of testing. We don't want to commit to a massive framework that dictates our work.\n\n\n## License\n\nCopyright 2020 OpenJS Foundation and contributors. Licensed under [MIT](./LICENSE).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolument%2Fbaretest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolument%2Fbaretest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolument%2Fbaretest/lists"}