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
26
26
- [ Requirements] ( #requirements )
27
27
- [ Install] ( #install )
28
28
- [ Usage] ( #usage )
29
- - [ Mocha.js example] ( #mochajs-example )
29
+ - [ With Vitest] ( #with-vitest )
30
+ - [ With Mocha] ( #with-mocha )
30
31
- [ Mocking native methods] ( #mocking-native-methods )
31
32
- [ Contributing] ( #contributing )
32
33
- [ License] ( #license )
@@ -79,11 +80,11 @@ Ideally, Vitest should be able to replace Babel when it comes to resolving and t
79
80
That being said, this package also provides a Vite Plugin you can add to your ` vitest.config.ts ` configuration file:
80
81
81
82
``` ts
82
- import { reactNativePlugin } from " react-native-testing-mocks/vitest" ;
83
+ import { reactNativeVitestPlugin } from " react-native-testing-mocks/vitest" ;
83
84
import { defineConfig } from " vitest/config" ;
84
85
85
86
export default defineConfig ({
86
- plugins: [reactNativePlugin ()],
87
+ plugins: [reactNativeVitestPlugin ()],
87
88
test: {
88
89
include: [" test/**/*.test.ts?(x)" ],
89
90
setupFiles: " ./test/setup.ts" ,
You can’t perform that action at this time.
0 commit comments