Gathering detailed insights and metrics for @eeue56/bach
Gathering detailed insights and metrics for @eeue56/bach
Gathering detailed insights and metrics for @eeue56/bach
Gathering detailed insights and metrics for @eeue56/bach
npm install @eeue56/bach
Typescript
Module System
Node Version
NPM Version
72.6
Supply Chain
81.6
Quality
79
Maintenance
100
Vulnerability
99.6
License
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
1 Stars
60 Commits
3 Watchers
1 Branches
1 Contributors
Updated on May 25, 2025
Latest Version
0.2.0
Package Id
@eeue56/bach@0.2.0
Unpacked Size
51.59 kB
Size
11.00 kB
File Count
9
NPM Version
10.5.0
Node Version
21.7.0
Published on
May 25, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
4
A very simple TypeScript test runner inspired by Pytest.
Looks in tsconfig.include for files ending with test
. Look in those files for functions starting with test
, and run them. Async functions are run with await
. Use the assert module for writing assertions. The return result is ignored.
Part of the Hiraeth collection.
Requires ts-node to be installed.
npm install --save-dev @eeue56/bach
Make sure your tsconfig has include
set up correctly. Then you can run bach via npx @eeue56/bach
from the project root.
See bach_test.ts for example usage.
You can also specify specific files or functions to run via flags:
--function [string...]: Run a specific function
--file [string...]: Run a specific file
--clean-exit: Don't use process.exit even if tests fail
--only-fails : Only show the tests that fail
--in-chunks number: Run tests in chunks of N files (suitable for lower memory impact)
--chunk-start number: Start running chunk at N
-u, --update-snapshots : Update the snapshots and exit
-h, --help : Displays help message
Snapshots can be created by having a function called snapshot{x}
exported inside the test files. On first run, it will create the snapshot files in __snapshots__
. On subsequent runs, the contents within the snapshot files will be compared with the output from the function. For example:
1export async function snapshotNumber() { 2 return 9001; 3}
Bach means "small" or "little" in Welsh. It is also used as an affectionate term, much like "love" or "dear" in English. I named it bach, because I wanted the smallest possible test runner that still gave useful output.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More