{"id":15311797,"url":"https://github.com/aslemammad/vitest","last_synced_at":"2025-10-08T21:30:49.793Z","repository":{"id":45910631,"uuid":"445228885","full_name":"Aslemammad/vitest","owner":"Aslemammad","description":"A Vite-native test framework. It's fast!","archived":false,"fork":true,"pushed_at":"2023-04-29T12:58:20.000Z","size":12529,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T05:21:21.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vitest.dev","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vitest-dev/vitest","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aslemammad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["antfu","patak-dev"]}},"created_at":"2022-01-06T16:03:22.000Z","updated_at":"2022-05-21T06:50:45.000Z","dependencies_parsed_at":"2023-01-30T20:15:48.969Z","dependency_job_id":"5cd27675-f808-4185-8ad9-70343083f6a1","html_url":"https://github.com/Aslemammad/vitest","commit_stats":{"total_commits":857,"total_committers":53,"mean_commits":"16.169811320754718","dds":0.3138856476079347,"last_synced_commit":"fcc03bfaa49765c6a257b0e7b1408218d88254a3"},"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvitest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvitest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvitest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Fvitest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aslemammad","download_url":"https://codeload.github.com/Aslemammad/vitest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877266,"owners_count":16554910,"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":[],"created_at":"2024-10-01T08:34:34.757Z","updated_at":"2025-10-08T21:30:43.631Z","avatar_url":"https://github.com/Aslemammad.png","language":null,"funding_links":["https://github.com/sponsors/antfu","https://github.com/sponsors/patak-dev"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/11247099/145112184-a9ff6727-661c-439d-9ada-963124a281f7.png\" height=\"150\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\nVitest\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\nNext generation testing framework powered by Vite.\n\u003cp\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vitest\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vitest?color=729B1B\u0026label=\"\u003e\u003c/a\u003e\n\u003cp\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://chat.vitest.dev\"\u003e\u003cb\u003eGet involved!\u003c/b\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n \u003ca href=\"https://vitest.dev\"\u003eDocumentation\u003c/a\u003e | \u003ca href=\"https://vitest.dev/guide/\"\u003eGetting Started\u003c/a\u003e | \u003ca href=\"https://vitest.dev/guide/#examples\"\u003eExamples\u003c/a\u003e | \u003ca href=\"https://vitest.dev/guide/why\"\u003eWhy Vitest?\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://cn.vitest.dev\"\u003e中文文档\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n\n\u003c/h4\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Features\n\n- [Vite](https://vitejs.dev/)'s config, transformers, resolvers, and plugins. Use the same setup from your app!\n- [Jest Snapshot](https://jestjs.io/docs/snapshot-testing)\n- [Chai](https://www.chaijs.com/) built-in for assertions, with [Jest expect](https://jestjs.io/docs/expect) compatible APIs\n- [Smart \u0026 instant watch mode](https://vitest.dev/guide/features.html#watch-mode), like HMR for tests!\n- [Native code coverage](https://vitest.dev/guide/features.html#coverage) via [`v8`](https://v8.dev/blog/javascript-code-coverage) or [`istanbul`](https://istanbul.js.org/).\n- [Tinyspy](https://github.com/tinylibs/tinyspy) built-in for mocking, stubbing, and spies.\n- [JSDOM](https://github.com/jsdom/jsdom) and [happy-dom](https://github.com/capricorn86/happy-dom) for DOM and browser API mocking\n- [Browser Mode](https://vitest.dev/guide/browser/) for running component tests in the browser\n- Components testing ([Vue](./examples/vue), [React](./examples/react), [Svelte](./examples/svelte), [Lit](./examples/lit), [Vitesse](./examples/vitesse), [Marko](https://github.com/marko-js/examples/tree/master/examples/library-ts))\n- Workers multi-threading via [Tinypool](https://github.com/tinylibs/tinypool) (a lightweight fork of [Piscina](https://github.com/piscinajs/piscina))\n- Benchmarking support with [Tinybench](https://github.com/tinylibs/tinybench)\n- [Workspace](https://vitest.dev/guide/workspace) support\n- [expect-type](https://github.com/mmkal/expect-type) for type-level testing\n- ESM first, top level await\n- Out-of-box TypeScript / JSX support\n- Filtering, timeouts, concurrent for suite and tests\n- Sharding support\n- Run your tests in the browser natively (experimental)\n\n\u003e Vitest requires Vite \u003e=v5.0.0 and Node \u003e=v18.0.0\n\n```ts\nimport { assert, describe, expect, it } from 'vitest'\n\ndescribe('suite name', () =\u003e {\n  it('foo', () =\u003e {\n    expect(1 + 1).toEqual(2)\n    expect(true).to.be.true\n  })\n\n  it('bar', () =\u003e {\n    assert.equal(Math.sqrt(4), 2)\n  })\n\n  it('snapshot', () =\u003e {\n    expect({ foo: 'bar' }).toMatchSnapshot()\n  })\n})\n```\n\n```bash\n$ npx vitest\n```\n\n## Sponsors\n\n### Vladimir Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/sheremet-va/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/sheremet-va/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Anthony Fu Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Patak Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/patak-dev/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/patak-dev/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Credits\n\nThanks to:\n\n- [The Jest team and community](https://jestjs.io/) for creating a delightful testing API\n- [@lukeed](https://github.com/lukeed) for the work on [uvu](https://github.com/lukeed/uvu) where we are inspired a lot from.\n- [@pi0](https://github.com/pi0) for the idea and implementation of using Vite to transform and bundle the server code.\n- [The Vite team](https://github.com/vitejs/vite) for brainstorming the initial idea.\n- [@patak-dev](https://github.com/patak-dev) for the awesome package name!\n\n## Contribution\nSee [Contributing Guide](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).\n\n## License\n\n[MIT](./LICENSE) License © 2021-Present [Anthony Fu](https://github.com/antfu), [Matias Capeletto](https://github.com/patak-dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Fvitest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faslemammad%2Fvitest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Fvitest/lists"}