{"id":15780120,"url":"https://github.com/balazs4/bft","last_synced_at":"2026-02-01T02:03:57.809Z","repository":{"id":85640751,"uuid":"328359245","full_name":"balazs4/bft","owner":"balazs4","description":"minimal test-runner for node.js","archived":false,"fork":false,"pushed_at":"2024-02-05T19:31:03.000Z","size":28,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-01T12:09:46.901Z","etag":null,"topics":["bloat-free","cli","minimal","nodejs","test","testrunner"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balazs4.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-10T10:45:13.000Z","updated_at":"2021-05-17T20:26:58.000Z","dependencies_parsed_at":"2024-10-04T18:40:42.962Z","dependency_job_id":null,"html_url":"https://github.com/balazs4/bft","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"314933479e306d4862526c98cc9787aa2c37a969"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/balazs4/bft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fbft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fbft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fbft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fbft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balazs4","download_url":"https://codeload.github.com/balazs4/bft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balazs4%2Fbft/sbom","scorecard":{"id":224360,"data":{"date":"2025-08-11","repo":{"name":"github.com/balazs4/bft","commit":"314933479e306d4862526c98cc9787aa2c37a969"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:6: update your workflow using https://app.stepsecurity.io/secureworkflow/balazs4/bft/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/balazs4/bft/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/balazs4/bft/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/balazs4/bft/main.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T03:21:17.979Z","repository_id":85640751,"created_at":"2025-08-17T03:21:17.979Z","updated_at":"2025-08-17T03:21:17.979Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28964438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T01:25:30.373Z","status":"online","status_checked_at":"2026-02-01T02:00:08.102Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bloat-free","cli","minimal","nodejs","test","testrunner"],"created_at":"2024-10-04T18:40:35.726Z","updated_at":"2026-02-01T02:03:57.794Z","avatar_url":"https://github.com/balazs4.png","language":"JavaScript","readme":"# bft\n\n\u003e **b**loat-**f**ree-**t**estrunner for node.js\n\n## usage\n\n```bash\nnpx bft test.js test/foobar.js path/to/test/file.js\n```\n\n```javascript\n// test.js\n\nconst assert = require('assert').strict;\n\ntest('this a test case', () =\u003e {\n   assert.strictEqual(42, 42);\n});\n\ntest('another test', async () =\u003e {\n   const expected = 'foobar';\n   const actual = await yourCodeUnderTest();\n   assert.strictEqual(actual, expected);\n});\n\ntest('i do not like the built-in assert module', () =\u003e {\n   throw new Error('no problem; just thrown an execption and this testcase will fail');\n});\n\n```\n\n## recipes\n\n### watch mode - [onchange](https://www.npmjs.com/package/onchange)\n\n```\nnpx onchange -i -k '*.test.js' -- npx bft *.test.js\n```\n\n### coverage - [c8](https://www.npmjs.com/package/c8)\n```\nnpx c8 --all npx bft *.test.js\n```\n\n## faq\n\n- Can I use the module without messing up with `global`?  \n  - Yes! see [example.test.js](example.test.js)\n\n- Where are the `setup` and `teardown` functions?\n  - In the bloated testrunner ;-)  `bft` encourages you to use [AAA - Arrange Act Assert](http://wiki.c2.com/?ArrangeActAssert) pattern.\n\n- \"If bloat-free, then color-free please\"\n   - `NO_COLOR=1 npx bft test.js` is your friend.\n\n## author\n\nbalazs4 - https://twitter.com/balazs4\n\n## license\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalazs4%2Fbft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalazs4%2Fbft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalazs4%2Fbft/lists"}