{"id":20653478,"url":"https://github.com/t-ski/min-test","last_synced_at":"2026-04-29T14:06:35.029Z","repository":{"id":242571424,"uuid":"805593929","full_name":"t-ski/min-test","owner":"t-ski","description":"Minimal test script for quickstart NodeJS projects.","archived":false,"fork":false,"pushed_at":"2024-06-25T17:23:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T22:43:25.774Z","etag":null,"topics":["nodejs","testing","zero-dependency"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/t-ski.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":"2024-05-24T23:44:42.000Z","updated_at":"2024-12-10T12:33:58.000Z","dependencies_parsed_at":"2024-06-03T21:08:09.846Z","dependency_job_id":"7845cfb1-6237-4648-86bc-a03394a0de9a","html_url":"https://github.com/t-ski/min-test","commit_stats":null,"previous_names":["t-ski/min-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/t-ski/min-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-ski%2Fmin-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-ski%2Fmin-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-ski%2Fmin-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-ski%2Fmin-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t-ski","download_url":"https://codeload.github.com/t-ski/min-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t-ski%2Fmin-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259783070,"owners_count":22910301,"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":["nodejs","testing","zero-dependency"],"created_at":"2024-11-16T17:44:28.408Z","updated_at":"2026-04-29T14:06:34.988Z","avatar_url":"https://github.com/t-ski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MinTest\n\nA \u003cins\u003emin\u003c/ins\u003eimal \u003cins\u003etest\u003c/ins\u003e script in favour of lean unit testing with lean NodeJS projects.\n\n\u003csub\u003e**Download**\u003c/sub\u003e\n\n``` cli\ncurl -o min-test.js https://raw.githubusercontent.com/t-ski/min-test/main/min-test.js\n```\n\n\u003csub\u003e**Via NPM**\u003c/sub\u003e \u003csub\u003e`package.json`\u003c/sub\u003e \u003csub\u003e→\u003c/sub\u003e \u003csub\u003e`npm i`\u003c/sub\u003e\n``` json\n\"scripts\": {\n  \"prepare\": \"curl -o min-test.js https://raw.githubusercontent.com/t-ski/min-test/main/min-test.js\"\n}\n```\n\n### Usage\n\nMinTest recursively scans and evaluates test files in the `./test` directory. Each file named according to the pattern `*.test.js` is a test file and subject to evaluation. The global scope defines the `test()` function that provides a simple, yet powerful (weak-deep-equal) assertion interface:\n\n\u003e Optionally, a different test directory path may be specified through the first positional CLI argument. \n\n``` cli\nnode min-test.js \u003ctest-directory-path\u003e?\n```\n\n``` ts\ntest(actual: unknown, expected: unknown);\n```\n\n### Example\n\n\u003csub\u003etest/example.test.js\u003c/sub\u003e\n``` js\ntest(5 + 5, 10);            // ✅\ntest((() =\u003e 5 + 5)(), 10);  // ✅\ntest(5, \"5\");               // ✅\n\ntest(5 + 5, 9);             // ❌\n```\n\n##\n\n\u003csub\u003e\u0026copy; Thassilo Martin Schiepanski\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-ski%2Fmin-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft-ski%2Fmin-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-ski%2Fmin-test/lists"}