mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
51 lines
2.5 KiB
Vue
51 lines
2.5 KiB
Vue
<script setup>
|
|
import ListItem from './ListItem.vue'
|
|
</script>
|
|
|
|
<template>
|
|
<ul
|
|
class="features-list"
|
|
dir="auto"
|
|
>
|
|
<ListItem><a target="_blank" href="https://vitejs.dev" rel="noopener noreferrer">Vite</a>'s config, transformers, resolvers, and plugins</ListItem>
|
|
<ListItem>Use the same setup from your app to run the tests!</ListItem>
|
|
<ListItem>Smart & instant watch mode, like HMR for tests!</ListItem>
|
|
<ListItem>Component testing for Vue, React, Svelte, Lit, Marko and more</ListItem>
|
|
<ListItem>Out-of-the-box TypeScript / JSX support</ListItem>
|
|
<ListItem>ESM first, top level await</ListItem>
|
|
<ListItem>Benchmarking support with <a target="_blank" href="https://github.com/tinylibs/tinybench" rel="noopener noreferrer">Tinybench</a></ListItem>
|
|
<ListItem>Filtering, timeouts, concurrent for suite and tests</ListItem>
|
|
<ListItem><a href="/guide/projects">Projects</a> support</ListItem>
|
|
<ListItem>
|
|
<a href="/guide/snapshot">
|
|
Jest-compatible Snapshot
|
|
</a>
|
|
</ListItem>
|
|
<ListItem><a target="_blank" href="https://www.chaijs.com/" rel="noopener noreferrer">Chai</a> built-in for assertions + <a target="_blank" href="https://jestjs.io/docs/expect" rel="noopener noreferrer">Jest expect</a> compatible APIs</ListItem>
|
|
<ListItem>Jest-compatible mocking</ListItem>
|
|
<ListItem><a target="_blank" href="https://github.com/capricorn86/happy-dom" rel="noopener noreferrer">happy-dom</a> or <a target="_blank" href="https://github.com/jsdom/jsdom" rel="noopener noreferrer">jsdom</a> for DOM mocking</ListItem>
|
|
<ListItem><a href="https://vitest.dev/guide/browser/" rel="noopener noreferrer">Browser Mode</a> for running component tests in the browser</ListItem>
|
|
<ListItem>Code coverage via <a target="_blank" href="https://v8.dev/blog/javascript-code-coverage" rel="noopener noreferrer">v8</a> or <a target="_blank" href="https://istanbul.js.org/" rel="noopener noreferrer">istanbul</a></ListItem>
|
|
<ListItem>Rust-like <a href="/guide/in-source">in-source testing</a></ListItem>
|
|
<ListItem>Type Testing via <a target="_blank" href="https://github.com/mmkal/expect-type" rel="noopener noreferrer">expect-type</a></ListItem>
|
|
<ListItem>Sharding Support</ListItem>
|
|
<ListItem>Reporting Uncaught Errors</ListItem>
|
|
</ul>
|
|
</template>
|
|
|
|
<style>
|
|
.features-list li {
|
|
list-style: none;
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.features-list {
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
</style>
|