File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
7980That 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" ;
8384import { defineConfig } from " vitest/config" ;
8485
8586export default defineConfig ({
86- plugins: [reactNativePlugin ()],
87+ plugins: [reactNativeVitestPlugin ()],
8788 test: {
8889 include: [" test/**/*.test.ts?(x)" ],
8990 setupFiles: " ./test/setup.ts" ,
You can’t perform that action at this time.
0 commit comments