vitest-native 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -0
- package/README.md +60 -13
- package/dist/{index-DGNLmGjq.d.mts → index-YjjYELG7.d.cts} +40 -3
- package/dist/{index-Dr3WvKWI.d.cts → index-vlK4zxuK.d.mts} +38 -5
- package/dist/index.cjs +12 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +12 -4
- package/dist/jest-compat/setup.mjs +15 -0
- package/dist/native/compile-cache.mjs +40 -0
- package/dist/native/hooks.mjs +9 -2
- package/dist/native/loader.mjs +50 -5
- package/dist/native/resolve.mjs +18 -0
- package/dist/native/setup.mjs +39 -2
- package/dist/native/transform.mjs +5 -3
- package/dist/native/worker.mjs +4 -0
- package/dist/{preset-map-CNBOeqAu.cjs → preset-map-BY9zk9Pj.cjs} +4 -1
- package/dist/{preset-map-C1UwEald.mjs → preset-map-DCWaM08s.mjs} +4 -1
- package/dist/{presets-DVLDrPC-.mjs → presets-23FJ76O4.mjs} +641 -6
- package/dist/{presets-BPVVlfI2.cjs → presets-7eMfp7o2.cjs} +712 -5
- package/dist/presets.cjs +4 -1
- package/dist/presets.d.cts +2 -2
- package/dist/presets.d.mts +2 -2
- package/dist/presets.mjs +2 -2
- package/dist/setup.cjs +24 -219
- package/dist/setup.mjs +15 -210
- package/docs/migrating-from-jest.md +3 -1
- package/package.json +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Run real React Native tests under Vitest. One install, zero config.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,25 +150,30 @@
|
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
152
|
"@babel/core": "^7.29.7",
|
|
153
|
+
"@gorhom/bottom-sheet": "5.2.14",
|
|
153
154
|
"@react-native-vector-icons/common": "13.0.1",
|
|
154
155
|
"@react-native-vector-icons/material-icons": "13.1.2",
|
|
155
156
|
"@react-native/babel-preset": "^0.85.3",
|
|
156
157
|
"@react-navigation/native": "7.2.5",
|
|
157
158
|
"@react-navigation/native-stack": "7.16.0",
|
|
158
|
-
"@
|
|
159
|
+
"@shopify/flash-list": "2.3.2",
|
|
160
|
+
"@testing-library/react-native": "14.0.0",
|
|
159
161
|
"@types/node": "25.3.5",
|
|
160
162
|
"@types/react": "19.2.14",
|
|
161
163
|
"@vitest/coverage-v8": "4.1.8",
|
|
162
164
|
"expo-constants": "56.0.16",
|
|
163
165
|
"expo-status-bar": "56.0.4",
|
|
166
|
+
"ext-platform-lib": "file:./tests-native/fixtures/ext-platform-lib",
|
|
164
167
|
"ext-rn-named-lib": "file:./tests-native/fixtures/ext-rn-named-lib",
|
|
165
168
|
"react": "^19.2.3",
|
|
166
|
-
"react-native": "^0.
|
|
169
|
+
"react-native": "^0.86.0",
|
|
167
170
|
"react-native-gesture-handler": "3.0.0",
|
|
171
|
+
"react-native-keyboard-controller": "1.21.11",
|
|
168
172
|
"react-native-reanimated": "4.3.1",
|
|
169
173
|
"react-native-safe-area-context": "5.8.0",
|
|
170
174
|
"react-native-worklets": "0.9.1",
|
|
171
175
|
"react-test-renderer": "^19.2.3",
|
|
176
|
+
"test-renderer": "^1.2.0",
|
|
172
177
|
"tsdown": "0.21.10",
|
|
173
178
|
"typescript": "6.0.3",
|
|
174
179
|
"vite": "^8.0.5",
|
|
@@ -178,6 +183,7 @@
|
|
|
178
183
|
"build": "tsdown",
|
|
179
184
|
"test": "vitest run",
|
|
180
185
|
"test:native": "vitest run --config tests-native/vitest.config.mts",
|
|
186
|
+
"test:native:navigation": "vitest run --config tests-native/vitest.navigation.config.mts",
|
|
181
187
|
"test:native:android": "vitest run --config tests-native/vitest.android.config.mts",
|
|
182
188
|
"test:native:hot": "vitest run --config tests-native/vitest.hot.config.mts",
|
|
183
189
|
"test:native:hot:isolation": "vitest run --config tests-native/vitest.hot-isolation.config.mts",
|
|
@@ -189,11 +195,11 @@
|
|
|
189
195
|
"check-compat": "bun scripts/check-compat.ts",
|
|
190
196
|
"typecheck": "tsc --noEmit",
|
|
191
197
|
"clean": "rm -rf dist",
|
|
192
|
-
"prepublishOnly": "bun run build && bun run test && bun run test:native && bun run test:native:android && bun run test:native:hot && bun run test:native:hot:isolation && bun run test:native:hot:soak && bun run crosscheck && bun run test:consumers && bun run lint && bun run typecheck",
|
|
198
|
+
"prepublishOnly": "bun run build && bun run test && bun run test:native && bun run test:native:navigation && bun run test:native:android && bun run test:native:hot && bun run test:native:hot:isolation && bun run test:native:hot:soak && bun run crosscheck && bun run test:consumers && bun run lint && bun run typecheck",
|
|
193
199
|
"crosscheck": "node scripts/crosscheck.mjs"
|
|
194
200
|
},
|
|
195
201
|
"dependencies": {
|
|
196
|
-
"flow-remove-types": "^2.
|
|
202
|
+
"flow-remove-types": "^2.318.0",
|
|
197
203
|
"magic-string": "^0.30.21"
|
|
198
204
|
}
|
|
199
205
|
}
|