{"id":22222072,"url":"https://github.com/fabiospampinato/fava","last_synced_at":"2025-06-11T15:32:52.378Z","repository":{"id":57233539,"uuid":"388941933","full_name":"fabiospampinato/fava","owner":"fabiospampinato","description":"A wannabe tiny largely-drop-in replacement for ava that works in the browser too.","archived":false,"fork":false,"pushed_at":"2025-05-31T17:27:39.000Z","size":198,"stargazers_count":10,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T05:56:42.365Z","etag":null,"topics":["bdd","browser","framework","isomorphic","simple","small","tdd","test","testing","tests","tiny"],"latest_commit_sha":null,"homepage":null,"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/fabiospampinato.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2021-07-23T22:31:38.000Z","updated_at":"2025-05-31T17:27:43.000Z","dependencies_parsed_at":"2025-05-31T18:38:57.991Z","dependency_job_id":"a62788ed-052f-49cf-a8a1-8fe9f1a493ee","html_url":"https://github.com/fabiospampinato/fava","commit_stats":{"total_commits":47,"total_committers":1,"mean_commits":47.0,"dds":0.0,"last_synced_commit":"b1d9a635f19d64133e4241c60789a9a891bd2466"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/fabiospampinato/fava","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ffava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ffava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ffava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ffava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/fava/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Ffava/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259289383,"owners_count":22834930,"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":["bdd","browser","framework","isomorphic","simple","small","tdd","test","testing","tests","tiny"],"created_at":"2024-12-02T23:16:46.440Z","updated_at":"2025-06-11T15:32:52.341Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./resources/logo/logo.svg\" alt=\"Fava's logo\" width=\"300\" /\u003e\n\u003c/p\u003e\n\n# [Fava](https://en.wikipedia.org/wiki/Vicia_faba) (WIP)\n\nA wannabe tiny largely-drop-in replacement for [`ava`](https://github.com/avajs/ava) that works in the browser too.\n\n## Features\n\n- **`ava`-like**: if you like `ava`'s APIs you'll like `fava`'s too, because it provides essentially the same APIs.\n- **Tiny**: it requires about 90% fewer dependencies, that's ~8MB less code to download and execute, and most of the dependencies used I maintain myself.\n- **Isomorphic**: it works everywhere, Node CLI, Node runtime, Electron, Browser, maybe even Deno.\n\n## Drawbacks\n\nThis is still very much a work in progress, compared to `ava` it currently has the following drawbacks (and probably more):\n\n- It's **untested**, testing software with an untested testing framework isn't really recommended.\n- Tests are always run serially, even across multiple test files, no two tests are ever running at the same time.\n- Test files are not preprocessed with Babel or TypeScript, they are just plain JS files.\n- The textual output of the library is pretty bare-bones in general, it's pretty far from being as nice as `ava`'s.\n- Error outputs in particular are pretty basic, no fancy diffs.\n- The `snapshot` and `try` assertions are not implemented.\n- Observables are not supported.\n- TAP reporters are not supported.\n- Callback tests are not supported.\n- Coverage reports are not supported.\n\nBasically unless you want to play with this or you absolutely need an `ava`-like testing framework in the browser I wouldn't recommend using this.\n\n## Install\n\n```sh\nnpm install --save-dev fava\n```\n\n## Usage\n\n```ts\nimport {assert, test, describe, suite} from 'fava';\n\n// A standalone assertion library is provided\n\nassert.deepEqual ( [1], [1] );\n\n// A \"suite\" function is provided, for opt-in better code organization\n// You can totally just not use it at all\n\nsuite ( 'Example suite', describe =\u003e {\n\n  // A \"describe\" function is provided, for opt-in better code organization\n  // \"describe\" functions can be nested indefinitely\n  // You can totally just not use it at all\n\n  describe ( 'Example describe', test =\u003e {\n\n    // A \"test\" function is provided, it should work just like ava's\n\n    test ( 'Example test', t =\u003e {\n\n      // A \"t\" context object is provided, it should work just like ava's\n\n      t.pass ();\n\n    });\n\n  });\n\n});\n```\n\nFor further documentation for now just refer to [`ava`'s](https://github.com/avajs/ava).\n\n## Testimonials\n\n- `@liquid`: I have used Fava and it's bean a pleasure.\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Ffava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Ffava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Ffava/lists"}