Skip to content

Commit

Permalink
docs: minor edits (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Feb 20, 2022
1 parent 2e1e9c3 commit e75e2e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guide/comparisons.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Cypress is known as an end-to-end testing tool, however their [new component test runner](https://on.cypress.io/component) has great support for testing Vite components and is an ideal choice to test anything that renders in a browser.

Browser-based runners, like Cypress and Web Test, will catch issues that Vitest cannot because they use the real browser and real browser APIs.
Browser-based runners, like Cypress and Web Test Runner, will catch issues that Vitest cannot because they use the real browser and real browser APIs.

Cypress's test driver is focused on determining if elements are visible, accessible, and interactive. Cypress is purpose-built for UI development and testing and its DX is centered around test driving your visual components. You see your component rendered alongside the test reporter. Once the test is complete, the component remains interactive and you can debug any failures that occur using your browser devtools.

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Vitest smartly searches the module graph and only rerun the related tests (just

## Smooth integration with UI Frameworks

Components testing for Vue, React, Lit and more
Components testing for Vue, React, Svelte, Lit and more

## Common web idioms out-of-the-box

Expand Down Expand Up @@ -76,7 +76,7 @@ beforeAll(async () => { ... }, 1000)

### Skipping suites and tests

Use `.skip` alias `it` to avoid running certain suites or tests
Use `.skip` to avoid running certain suites or tests

```ts
import { describe, assert, it } from 'vitest';
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/FeaturesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
<ListItem><a target="_blank" href="https://vitejs.dev">Vite</a>'s config, transformers, resolvers, and plugins.</ListItem>
<ListItem>Use the same setup from your app to run the tests!</ListItem>
<ListItem><a href="https://twitter.com/antfu7/status/1468233216939245579" target="_blank">Smart & instant watch mode, like HMR for tests!</a></ListItem>
<ListItem>Components testing for Vue, React, Lit and more</ListItem>
<ListItem>Components testing for Vue, React, Svelte, Lit and more</ListItem>
<ListItem>Out-of-box TypeScript / JSX support</ListItem>
<ListItem>ESM first, top level await</ListItem>
<ListItem>Workers multi-threading via <a href="https://github.com/Aslemammad/tinypool" target="_blank">tinypool</a></ListItem>
<ListItem>Filtering, timeouts, concurrent for suite and tests</ListItem>
<ListItem><a target="_blank" href="https://jestjs.io/docs/snapshot-testing" rel="nofollow">Jest Snapshot</a></ListItem>
<ListItem><a target="_blank" href="https://www.chaijs.com/" rel="nofollow">Chai</a> built-in for assertions + <a href="https://jestjs.io/docs/expect" rel="nofollow">Jest expect</a> compatible APIs</ListItem>
<ListItem><a target="_blank" href="https://github.com/Aslemammad/tinyspy" rel="nofollow">Tinyspy</a> built-in for mocking</ListItem>
<ListItem><a target="_blank" href="https://github.com/jsdom/jsdom">jsdom</a> or <a target="_blank" href="https://github.com/capricorn86/happy-dom">happy-dom</a> for DOM mocking</ListItem>
<ListItem><a target="_blank" href="https://github.com/capricorn86/happy-dom">happy-dom</a> or <a target="_blank" href="https://github.com/jsdom/jsdom">jsdom</a> for DOM mocking</ListItem>
<ListItem>Native code coverage via <a target="_blank" href="https://github.com/bcoe/c8">c8</a></ListItem>
</ul>
</template>
Expand Down

0 comments on commit e75e2e5

Please sign in to comment.