Skip to content

Commit

Permalink
Add tip to documentation on how to disable in unit testing context (#173
Browse files Browse the repository at this point in the history
)

* Add tip on how to disable in unit testing context

* docs: tweak

Co-authored-by: Andre Asselin <andre.asselin@primerica.com>
Co-authored-by: fi3ework <fi3ework@gmail.com>
  • Loading branch information
3 people committed Oct 7, 2022
1 parent 3be96a8 commit ca900d6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/introduction/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ If you are using [Vite 3](https://vitejs.dev/blog/announcing-vite3.html), the mi
}
```

::: tip
If you'd prefer to not run the checkers during unit testing with vitest, you can alter the config based on that. Example:

```ts
// vite.config.js
import checker from 'vite-plugin-checker'
export default {
plugins: [!process.env.VITEST ? checker({ typescript: true }) : undefined],
}
```

:::

3. You're all set. Open localhost page and start development 🚀.

::: tip
Expand Down

0 comments on commit ca900d6

Please sign in to comment.