{"id":38027903,"url":"https://github.com/maxdevos49/prototest","last_synced_at":"2026-01-16T19:36:27.430Z","repository":{"id":57331859,"uuid":"272545866","full_name":"maxdevos49/prototest","owner":"maxdevos49","description":"Javascript testing framework with support for esm by default. Published on NPM","archived":false,"fork":false,"pushed_at":"2020-06-24T04:59:36.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T09:35:24.249Z","etag":null,"topics":["esm","js","modules","nodejs","testing"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/prototest","language":"TypeScript","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/maxdevos49.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-06-15T21:16:23.000Z","updated_at":"2020-07-07T01:31:34.000Z","dependencies_parsed_at":"2022-09-21T03:21:24.458Z","dependency_job_id":null,"html_url":"https://github.com/maxdevos49/prototest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxdevos49/prototest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdevos49%2Fprototest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdevos49%2Fprototest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdevos49%2Fprototest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdevos49%2Fprototest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxdevos49","download_url":"https://codeload.github.com/maxdevos49/prototest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdevos49%2Fprototest/sbom","scorecard":{"id":629023,"data":{"date":"2025-08-11","repo":{"name":"github.com/maxdevos49/prototest","commit":"ddf4f93abc558ae9060684edab90587829bd4eac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T07:18:40.792Z","repository_id":57331859,"created_at":"2025-08-21T07:18:40.792Z","updated_at":"2025-08-21T07:18:40.792Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["esm","js","modules","nodejs","testing"],"created_at":"2026-01-16T19:36:26.861Z","updated_at":"2026-01-16T19:36:27.403Z","avatar_url":"https://github.com/maxdevos49.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProtoTest\n\nTesting framework with esm support by default without transpilation.\n\nInstall with NPM\n```sh\nnpm install prototest\n```\n\n## Setup\nTest can be named anything you want. By default prototest will look for test using the glob \"**/*.test.js\". To use a different pattern use the cli flags -t=\"your-glob\" or --target=\"your-glob\".\n\n\nTest should be compiled with typescript if being used. Add a test script like below:\n\n```json\n//package.json\n\n{\n    ...\n    \"scripts\": {\n        ...\n        //if you are using typescript\n        \"pretest\": \"npm run build\",\n        //Optional glob pattern supplied here to instead target files ending in .spec.js as an example\n        \"test\": \"prototest -t=\"**/*.spec.js\",\n    }\n}\n```\n\nRun test with the command:\n```sh\nnpm run test\n```\n\nNote: Prototest should work without anything extra after node versions 13. It may also be necessary to include the field: `\"type\": \"module\"` in your package.json\n\n## Example Test Files and Output\n```js\n//test.test.js\n\nimport { describe, expect, it, log } from \"prototest\";\n\ndescribe(\"This is a test\", () =\u003e {\n\n    it(\"Should do some comparing\", () =\u003e {\n\n        log(\"My First Log\")\n\n        expect(10).toEqual(\"10\");\n\n    });\n    log(\"My Second Log\")\n});\n```\n\n```js\n//otherTest.test.js\nimport { specification, expect, it } from \"prototest\";\n\n/**\n * Use specification to help describe what you are testing \n */\nspecification({\n    title: \"Test Specification\",\n    author: [\n        \"Your Name\"\n    ],\n    date: \"October 31, 2020\",\n    description: \"This is the description of this specification\",\n    notes: [\n        \"This is a note\"\n    ],\n    specs: [\n        [\"Suite 1\", () =\u003e {\n            it(\"Should Run a comparison\", () =\u003e {\n                expect(\"Hello\").toStrictEqual(\"Hello\");\n            });\n        }],\n        [\"Suite 2\", () =\u003e {\n            it(\"Should Run another comparison\", () =\u003e {\n                expect(\"world!\").toStrictEqual(\"world!\");\n            });     \n        }]\n    ]\n    \n});\n\n```\nOutput:\n```\n--- Test File: /Your/Path/To/test.test.js\n\nThis is a test\n   Should do some comparing \nMy First Log\n      √ expect 10 toEqual 10 \nMy Second Log\n\n--- Test File: /Your/Path/To/otherTest.test.js\n\nSpecification: Test Specification\n\nDate: October 31, 2020\nAuthor(s): Your Name\nDescription:\n    This is the description of this specification\n\nNotes:\n    1. This is a note\n\nSuite 1\n   Should Run a comparison\n      √ expect Hello toEqual Hello\n\nSuite 2\n   Should Run another comparison\n      √ expect world! toEqual world!\n\n=========================================\n\nPassed Test: 1\nFailed Test: 0\nTotal Test: 1\n\nAll Test Passed\n```\n\n## Contributions\n---\nAll help is welcomed. This is my first npm package so please give me any feedback both critical and helpful you see fit on github issues.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdevos49%2Fprototest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxdevos49%2Fprototest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdevos49%2Fprototest/lists"}