{"id":25834890,"url":"https://github.com/vndg-rdmt/assertion-pipe","last_synced_at":"2025-10-10T09:34:53.411Z","repository":{"id":182678647,"uuid":"668602751","full_name":"vndg-rdmt/assertion-pipe","owner":"vndg-rdmt","description":"Typescript testing library with pipeline-like testing feature","archived":false,"fork":false,"pushed_at":"2023-07-21T18:52:39.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-22T12:54:47.458Z","etag":null,"topics":["assert","assertion","development-tools","test","testing","testing-tools","typecript","unit-test","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vndg-rdmt.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}},"created_at":"2023-07-20T07:35:35.000Z","updated_at":"2023-07-21T06:14:04.000Z","dependencies_parsed_at":"2023-07-22T01:04:55.784Z","dependency_job_id":null,"html_url":"https://github.com/vndg-rdmt/assertion-pipe","commit_stats":null,"previous_names":["belousov-daniil/assert-and-test","belousov-daniil/assertion-pipe","vndg-rdmt/assertion-pipe"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndg-rdmt%2Fassertion-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndg-rdmt%2Fassertion-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndg-rdmt%2Fassertion-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vndg-rdmt%2Fassertion-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vndg-rdmt","download_url":"https://codeload.github.com/vndg-rdmt/assertion-pipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241300511,"owners_count":19940493,"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":["assert","assertion","development-tools","test","testing","testing-tools","typecript","unit-test","unit-testing"],"created_at":"2025-03-01T01:00:14.472Z","updated_at":"2025-10-10T09:34:48.371Z","avatar_url":"https://github.com/vndg-rdmt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Assertion pipe testing library\n\n*Bare minimum, just all you needs*\n\nThis small library provides an ability to create assertion pipelines and control it's flow via events callbacks.\nLibrary contains two main entities:\n\n```ts\nclass Assertion\n```\n```ts\nclass AssertionPipeline\n```\n\n`Assertion` - is a test statements, which can just assums, are provided assertion works as expected or return a proper value, etc. `AssertionPipeline` - your handler for create automated, and even looped testing, which provides you a controller on every potentially useful event.\n\nWith `AssertionPipeline` your testing flow becomes controlled with and within events. Why this library event exists and why is that in such way? Each test is thought as just part/shard of a testing processs, now you don't mind about tests as a separate modules, now you look at them at globally like the proccess of testing.\n\n### How it works?\n\nA single test is created with\n```ts\nfunction someFunctionToTest(logger) {\n    return Promise.resolve(1)\n};\n\nnew Assertion\u003cboolean\u003e(someFunctionToTest, (value) =\u003e value === 1 ).test()\n```\n\nIf you want to start a lot of assertions, and maybe in loop\n\n```ts\nconst values = [\n    new Assertion\u003cboolean\u003e(someFunctionToTest1, (value) =\u003e value === 1 ),\n    new Assertion\u003cboolean\u003e(someFunctionToTest2, (value) =\u003e value === 2 ),\n    new Assertion\u003cboolean\u003e(someFunctionToTest3, (value) =\u003e value === 3 ),\n]\n\nconst pipeline = new AssertionPipeline(values);\npipeline.run();\n```\n\nPipeline, as an Assertion, are async, so it's can also be used as a api testing framework.\nPipeline provides all neccessary events that can be managed by user.\n\nApi docs will be added later, support for UI wrapper is currently in development","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvndg-rdmt%2Fassertion-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvndg-rdmt%2Fassertion-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvndg-rdmt%2Fassertion-pipe/lists"}