[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3828":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":14,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":31,"discoverSource":32},3828,"vitest","vitest-dev\u002Fvitest","vitest-dev","Next generation testing framework powered by Vite.","https:\u002F\u002Fvitest.dev",null,"TypeScript",16689,1824,56,330,0,2,176,31,44.78,"MIT License",false,"main",[25,26,27],"test","testing-tools","vite","2026-06-12 02:00:54","\u003Cp align=\"center\">\n  \u003Cbr>\n  \u003Cbr>\n  \u003Ca href=\"https:\u002F\u002Fvitest.dev\" target=\"_blank\" rel=\"noopener noreferrer\">\n    \u003Cpicture>\n      \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fvitest.dev\u002Fvitest-light.svg\">\n      \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fvitest.dev\u002Fvitest-dark.svg\">\n      \u003Cimg alt=\"Vitest logo\" src=\"https:\u002F\u002Fvitest.dev\u002Fvitest-dark.svg\" height=\"60\">\n    \u003C\u002Fpicture>\n  \u003C\u002Fa>\n  \u003Cbr>\n  \u003Cbr>\n  \u003Cbr>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">\nVitest\n\u003C\u002Fh1>\n\u003Cp align=\"center\">\nNext generation testing framework powered by Vite.\n\u003Cp>\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fnpmx.dev\u002Fpackage\u002Fvitest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fvitest?color=729B1B&label=\" alt=\"current vitest version badge\">\u003C\u002Fa>\n\u003Cp>\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fchat.vitest.dev\">\u003Cb>Get involved!\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n \u003Ca href=\"https:\u002F\u002Fvitest.dev\">Documentation\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fvitest.dev\u002Fguide\u002F\">Getting Started\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fvitest.dev\u002Fguide\u002F#examples\">Examples\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fvitest.dev\u002Fguide\u002Fwhy\">Why Vitest?\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fcn.vitest.dev\">中文文档\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ch4 align=\"center\">\n\n\u003C\u002Fh4>\n\u003Cbr>\n\u003Cbr>\n\n## Features\n\n- [Vite](https:\u002F\u002Fvitejs.dev\u002F)'s config, transformers, resolvers, and plugins. Use the same setup from your app!\n- [Jest Snapshot](https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fsnapshot-testing)\n- [Chai](https:\u002F\u002Fwww.chaijs.com\u002F) built-in for assertions, with [Jest expect](https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fexpect) compatible APIs\n- [Smart & instant watch mode](https:\u002F\u002Fvitest.dev\u002Fguide\u002Ffeatures.html#watch-mode), like HMR for tests!\n- [Native code coverage](https:\u002F\u002Fvitest.dev\u002Fguide\u002Ffeatures.html#coverage) via [`v8`](https:\u002F\u002Fv8.dev\u002Fblog\u002Fjavascript-code-coverage) or [`istanbul`](https:\u002F\u002Fistanbul.js.org\u002F).\n- Jest-compatible mocking, stubbing, and spies.\n- [JSDOM](https:\u002F\u002Fgithub.com\u002Fjsdom\u002Fjsdom) and [happy-dom](https:\u002F\u002Fgithub.com\u002Fcapricorn86\u002Fhappy-dom) for DOM and browser API mocking\n- [Browser Mode](https:\u002F\u002Fvitest.dev\u002Fguide\u002Fbrowser\u002F) for running component tests in the browser\n- Components testing ([Vue](https:\u002F\u002Fgithub.com\u002Fvitest-tests\u002Fbrowser-examples\u002Ftree\u002Fmain\u002Fexamples\u002Fvue), [React](https:\u002F\u002Fgithub.com\u002Fvitest-tests\u002Fbrowser-examples\u002Ftree\u002Fmain\u002Fexamples\u002Freact), [Svelte](https:\u002F\u002Fgithub.com\u002Fvitest-tests\u002Fbrowser-examples\u002Ftree\u002Fmain\u002Fexamples\u002Fsvelte), [Lit](.\u002Fexamples\u002Flit), [Marko](https:\u002F\u002Fgithub.com\u002Fmarko-js\u002Fexamples\u002Ftree\u002Fmaster\u002Fexamples\u002Flibrary-ts))\n- Benchmarking support with [Tinybench](https:\u002F\u002Fgithub.com\u002Ftinylibs\u002Ftinybench)\n- [Projects](https:\u002F\u002Fvitest.dev\u002Fguide\u002Fprojects) support\n- [expect-type](https:\u002F\u002Fgithub.com\u002Fmmkal\u002Fexpect-type) for type-level testing\n- ESM first, top level await\n- Out-of-box TypeScript \u002F JSX support\n- Filtering, timeouts, concurrent for suite and tests\n- Sharding support\n- Reporting Uncaught Errors\n- Run your tests in the browser natively\n\n> Vitest requires Vite >=v6.0.0 and Node >=v20.0.0\n\n```ts\nimport { assert, describe, expect, it } from 'vitest'\n\ndescribe('suite name', () => {\n  it('foo', () => {\n    expect(1 + 1).toEqual(2)\n    expect(true).to.be.true\n  })\n\n  it('bar', () => {\n    assert.equal(Math.sqrt(4), 2)\n  })\n\n  it('snapshot', () => {\n    expect({ foo: 'bar' }).toMatchSnapshot()\n  })\n})\n```\n\n```bash\n$ npx vitest\n```\n\n## Sponsors\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fsheremet-va\u002Fstatic\u002Fvitest\u002Fsponsors.svg\">\n    \u003Cimg src='https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fsheremet-va\u002Fstatic\u002Fvitest\u002Fsponsors.svg' alt=\"vitest's sponsors\"\u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n## Credits\n\nThanks to:\n\n- [The Jest team and community](https:\u002F\u002Fjestjs.io\u002F) for creating a delightful testing API\n- [@lukeed](https:\u002F\u002Fgithub.com\u002Flukeed) for the work on [uvu](https:\u002F\u002Fgithub.com\u002Flukeed\u002Fuvu) where we are inspired a lot from.\n- [@pi0](https:\u002F\u002Fgithub.com\u002Fpi0) for the idea and implementation of using Vite to transform and bundle the server code.\n- [The Vite team](https:\u002F\u002Fgithub.com\u002Fvitejs\u002Fvite) for brainstorming the initial idea.\n- [@patak-dev](https:\u002F\u002Fgithub.com\u002Fpatak-dev) for the awesome package name!\n\n## Contribution\n\nSee [Contributing Guide](https:\u002F\u002Fgithub.com\u002Fvitest-dev\u002Fvitest\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\n\n## License\n\n[MIT](.\u002FLICENSE) License © 2021-Present VoidZero Inc. and Vitest contributors\n","Vitest 是一个基于 Vite 的下一代测试框架。它利用了 Vite 的配置、转换器、解析器和插件，支持即时的智能监听模式，提供原生代码覆盖率报告，并且兼容 Jest 的快照测试、断言、模拟等功能。此外，Vitest 还集成了 JSDOM 和 happy-dom 用于 DOM 和浏览器 API 的模拟，支持组件测试（如 Vue、React、Svelte 等）以及基准测试。该框架特别适合于使用 Vite 构建的现代前端项目，为开发者提供了高效、全面的测试解决方案。","2026-06-11 02:56:32","top_language"]