Skip to content

Commit ed3d495

Browse files
authored
docs(readme): Update Vitest usage and index (#32)
1 parent d87e92a commit ed3d495

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ But what if you don't want to use Jest as your testing framework? What if you do
2626
- [Requirements](#requirements)
2727
- [Install](#install)
2828
- [Usage](#usage)
29-
- [Mocha.js example](#mochajs-example)
29+
- [With Vitest](#with-vitest)
30+
- [With Mocha](#with-mocha)
3031
- [Mocking native methods](#mocking-native-methods)
3132
- [Contributing](#contributing)
3233
- [License](#license)
@@ -79,11 +80,11 @@ Ideally, Vitest should be able to replace Babel when it comes to resolving and t
7980
That being said, this package also provides a Vite Plugin you can add to your `vitest.config.ts` configuration file:
8081

8182
```ts
82-
import { reactNativePlugin } from "react-native-testing-mocks/vitest";
83+
import { reactNativeVitestPlugin } from "react-native-testing-mocks/vitest";
8384
import { defineConfig } from "vitest/config";
8485

8586
export default defineConfig({
86-
plugins: [reactNativePlugin()],
87+
plugins: [reactNativeVitestPlugin()],
8788
test: {
8889
include: ["test/**/*.test.ts?(x)"],
8990
setupFiles: "./test/setup.ts",

0 commit comments

Comments
 (0)