vitest-native 0.1.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/LICENSE +21 -0
- package/README.md +456 -0
- package/dist/chunk-CjcI7cDX.mjs +15 -0
- package/dist/helpers.cjs +113 -0
- package/dist/helpers.d.cts +19 -0
- package/dist/helpers.d.mts +19 -0
- package/dist/helpers.mjs +108 -0
- package/dist/index-CJqS-y_M.d.cts +268 -0
- package/dist/index-h4vpIkQO.d.mts +266 -0
- package/dist/index.cjs +308 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +299 -0
- package/dist/preset-map-C5d8DSY7.cjs +21 -0
- package/dist/preset-map-CTAjv5aa.mjs +16 -0
- package/dist/presets-ArwboRy7.cjs +980 -0
- package/dist/presets-DgEuMxfn.mjs +896 -0
- package/dist/presets.cjs +9 -0
- package/dist/presets.d.cts +2 -0
- package/dist/presets.d.mts +2 -0
- package/dist/presets.mjs +2 -0
- package/dist/serializer.cjs +118 -0
- package/dist/serializer.d.cts +16 -0
- package/dist/serializer.d.mts +16 -0
- package/dist/serializer.mjs +117 -0
- package/dist/setup.cjs +1869 -0
- package/dist/setup.d.cts +1 -0
- package/dist/setup.d.mts +1 -0
- package/dist/setup.mjs +1869 -0
- package/package.json +124 -0
package/package.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vitest-native",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A Vitest plugin for React Native. One install, zero config.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Daniel Fry",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/danielfry/vitest-react-native.git",
|
|
11
|
+
"directory": "packages/vitest-native"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/danielfry/vitest-react-native#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/danielfry/vitest-react-native/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"vitest",
|
|
19
|
+
"react-native",
|
|
20
|
+
"testing",
|
|
21
|
+
"mock",
|
|
22
|
+
"vite",
|
|
23
|
+
"plugin",
|
|
24
|
+
"expo",
|
|
25
|
+
"react"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/index.cjs",
|
|
28
|
+
"module": "./dist/index.mjs",
|
|
29
|
+
"types": "./dist/index.d.mts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/index.d.cts",
|
|
38
|
+
"default": "./dist/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./helpers": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/helpers.d.mts",
|
|
44
|
+
"default": "./dist/helpers.mjs"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/helpers.d.cts",
|
|
48
|
+
"default": "./dist/helpers.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./setup": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/setup.d.mts",
|
|
54
|
+
"default": "./dist/setup.mjs"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/setup.d.cts",
|
|
58
|
+
"default": "./dist/setup.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./serializer": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/serializer.d.mts",
|
|
64
|
+
"default": "./dist/serializer.mjs"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./dist/serializer.d.cts",
|
|
68
|
+
"default": "./dist/serializer.cjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./presets": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/presets.d.mts",
|
|
74
|
+
"default": "./dist/presets.mjs"
|
|
75
|
+
},
|
|
76
|
+
"require": {
|
|
77
|
+
"types": "./dist/presets.d.cts",
|
|
78
|
+
"default": "./dist/presets.cjs"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"files": ["dist", "LICENSE"],
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=18"
|
|
85
|
+
},
|
|
86
|
+
"sideEffects": false,
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"react": ">=18",
|
|
92
|
+
"vite": ">=5",
|
|
93
|
+
"vitest": ">=4",
|
|
94
|
+
"@testing-library/react-native": ">=12"
|
|
95
|
+
},
|
|
96
|
+
"peerDependenciesMeta": {
|
|
97
|
+
"@testing-library/react-native": {
|
|
98
|
+
"optional": true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@testing-library/react-native": "^12.9.0",
|
|
103
|
+
"@types/node": "^25.3.5",
|
|
104
|
+
"@types/react": "^19.2.14",
|
|
105
|
+
"react": "^19.0.0",
|
|
106
|
+
"react-native": "^0.84.1",
|
|
107
|
+
"react-test-renderer": "^19.0.0",
|
|
108
|
+
"tsdown": "^0.21.0",
|
|
109
|
+
"typescript": "^5.7.0",
|
|
110
|
+
"vite": "^6.0.0",
|
|
111
|
+
"vitest": "^4.0.0"
|
|
112
|
+
},
|
|
113
|
+
"scripts": {
|
|
114
|
+
"build": "tsdown",
|
|
115
|
+
"test": "vitest run",
|
|
116
|
+
"lint": "oxlint --deny-warnings src/ tests/",
|
|
117
|
+
"format": "oxfmt --write src/ tests/",
|
|
118
|
+
"format:check": "oxfmt --check src/ tests/",
|
|
119
|
+
"check-compat": "bun scripts/check-compat.ts",
|
|
120
|
+
"typecheck": "tsc --noEmit",
|
|
121
|
+
"clean": "rm -rf dist",
|
|
122
|
+
"prepublishOnly": "bun run build && bun run test && bun run lint && bun run typecheck"
|
|
123
|
+
}
|
|
124
|
+
}
|