Skip to content

Commit

Permalink
docs(readme): Update Vitest usage and index (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Jul 6, 2024
1 parent d87e92a commit ed3d495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ But what if you don't want to use Jest as your testing framework? What if you do
- [Requirements](#requirements)
- [Install](#install)
- [Usage](#usage)
- [Mocha.js example](#mochajs-example)
- [With Vitest](#with-vitest)
- [With Mocha](#with-mocha)
- [Mocking native methods](#mocking-native-methods)
- [Contributing](#contributing)
- [License](#license)
Expand Down Expand Up @@ -79,11 +80,11 @@ Ideally, Vitest should be able to replace Babel when it comes to resolving and t
That being said, this package also provides a Vite Plugin you can add to your `vitest.config.ts` configuration file:

```ts
import { reactNativePlugin } from "react-native-testing-mocks/vitest";
import { reactNativeVitestPlugin } from "react-native-testing-mocks/vitest";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [reactNativePlugin()],
plugins: [reactNativeVitestPlugin()],
test: {
include: ["test/**/*.test.ts?(x)"],
setupFiles: "./test/setup.ts",
Expand Down

0 comments on commit ed3d495

Please sign in to comment.