@testing-library/react-native 14.0.0-rc.1 → 14.0.0-rc.2

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.
Files changed (302) hide show
  1. package/matchers.d.ts +1 -1
  2. package/matchers.js +2 -2
  3. package/package.json +6 -6
  4. package/pure.d.ts +1 -1
  5. package/pure.js +1 -1
  6. package/docs/agents/architecture.md +0 -21
  7. package/docs/agents/build-and-validation.md +0 -27
  8. package/docs/agents/code-style.md +0 -12
  9. package/docs/agents/example-apps.md +0 -56
  10. package/docs/agents/git-workflow.md +0 -13
  11. package/docs/agents/testing.md +0 -20
  12. /package/{build → dist}/act.d.ts +0 -0
  13. /package/{build → dist}/act.js +0 -0
  14. /package/{build → dist}/act.js.map +0 -0
  15. /package/{build → dist}/cleanup.d.ts +0 -0
  16. /package/{build → dist}/cleanup.js +0 -0
  17. /package/{build → dist}/cleanup.js.map +0 -0
  18. /package/{build → dist}/config.d.ts +0 -0
  19. /package/{build → dist}/config.js +0 -0
  20. /package/{build → dist}/config.js.map +0 -0
  21. /package/{build → dist}/event-builder/base.d.ts +0 -0
  22. /package/{build → dist}/event-builder/base.js +0 -0
  23. /package/{build → dist}/event-builder/base.js.map +0 -0
  24. /package/{build → dist}/event-builder/common.d.ts +0 -0
  25. /package/{build → dist}/event-builder/common.js +0 -0
  26. /package/{build → dist}/event-builder/common.js.map +0 -0
  27. /package/{build → dist}/event-builder/index.d.ts +0 -0
  28. /package/{build → dist}/event-builder/index.js +0 -0
  29. /package/{build → dist}/event-builder/index.js.map +0 -0
  30. /package/{build → dist}/event-builder/scroll.d.ts +0 -0
  31. /package/{build → dist}/event-builder/scroll.js +0 -0
  32. /package/{build → dist}/event-builder/scroll.js.map +0 -0
  33. /package/{build → dist}/event-builder/text.d.ts +0 -0
  34. /package/{build → dist}/event-builder/text.js +0 -0
  35. /package/{build → dist}/event-builder/text.js.map +0 -0
  36. /package/{build → dist}/event-handler.d.ts +0 -0
  37. /package/{build → dist}/event-handler.js +0 -0
  38. /package/{build → dist}/event-handler.js.map +0 -0
  39. /package/{build → dist}/fire-event.d.ts +0 -0
  40. /package/{build → dist}/fire-event.js +0 -0
  41. /package/{build → dist}/fire-event.js.map +0 -0
  42. /package/{build → dist}/flush-micro-tasks.d.ts +0 -0
  43. /package/{build → dist}/flush-micro-tasks.js +0 -0
  44. /package/{build → dist}/flush-micro-tasks.js.map +0 -0
  45. /package/{build → dist}/helpers/accessibility.d.ts +0 -0
  46. /package/{build → dist}/helpers/accessibility.js +0 -0
  47. /package/{build → dist}/helpers/accessibility.js.map +0 -0
  48. /package/{build → dist}/helpers/component-tree.d.ts +0 -0
  49. /package/{build → dist}/helpers/component-tree.js +0 -0
  50. /package/{build → dist}/helpers/component-tree.js.map +0 -0
  51. /package/{build → dist}/helpers/debug.d.ts +0 -0
  52. /package/{build → dist}/helpers/debug.js +0 -0
  53. /package/{build → dist}/helpers/debug.js.map +0 -0
  54. /package/{build → dist}/helpers/errors.d.ts +0 -0
  55. /package/{build → dist}/helpers/errors.js +0 -0
  56. /package/{build → dist}/helpers/errors.js.map +0 -0
  57. /package/{build → dist}/helpers/find-all.d.ts +0 -0
  58. /package/{build → dist}/helpers/find-all.js +0 -0
  59. /package/{build → dist}/helpers/find-all.js.map +0 -0
  60. /package/{build → dist}/helpers/format-element.d.ts +0 -0
  61. /package/{build → dist}/helpers/format-element.js +0 -0
  62. /package/{build → dist}/helpers/format-element.js.map +0 -0
  63. /package/{build → dist}/helpers/host-component-names.d.ts +0 -0
  64. /package/{build → dist}/helpers/host-component-names.js +0 -0
  65. /package/{build → dist}/helpers/host-component-names.js.map +0 -0
  66. /package/{build → dist}/helpers/logger.d.ts +0 -0
  67. /package/{build → dist}/helpers/logger.js +0 -0
  68. /package/{build → dist}/helpers/logger.js.map +0 -0
  69. /package/{build → dist}/helpers/map-props.d.ts +0 -0
  70. /package/{build → dist}/helpers/map-props.js +0 -0
  71. /package/{build → dist}/helpers/map-props.js.map +0 -0
  72. /package/{build → dist}/helpers/matchers/match-accessibility-state.d.ts +0 -0
  73. /package/{build → dist}/helpers/matchers/match-accessibility-state.js +0 -0
  74. /package/{build → dist}/helpers/matchers/match-accessibility-state.js.map +0 -0
  75. /package/{build → dist}/helpers/matchers/match-accessibility-value.d.ts +0 -0
  76. /package/{build → dist}/helpers/matchers/match-accessibility-value.js +0 -0
  77. /package/{build → dist}/helpers/matchers/match-accessibility-value.js.map +0 -0
  78. /package/{build → dist}/helpers/matchers/match-array-prop.d.ts +0 -0
  79. /package/{build → dist}/helpers/matchers/match-array-prop.js +0 -0
  80. /package/{build → dist}/helpers/matchers/match-array-prop.js.map +0 -0
  81. /package/{build → dist}/helpers/matchers/match-label-text.d.ts +0 -0
  82. /package/{build → dist}/helpers/matchers/match-label-text.js +0 -0
  83. /package/{build → dist}/helpers/matchers/match-label-text.js.map +0 -0
  84. /package/{build → dist}/helpers/matchers/match-object-prop.d.ts +0 -0
  85. /package/{build → dist}/helpers/matchers/match-object-prop.js +0 -0
  86. /package/{build → dist}/helpers/matchers/match-object-prop.js.map +0 -0
  87. /package/{build → dist}/helpers/matchers/match-string-prop.d.ts +0 -0
  88. /package/{build → dist}/helpers/matchers/match-string-prop.js +0 -0
  89. /package/{build → dist}/helpers/matchers/match-string-prop.js.map +0 -0
  90. /package/{build → dist}/helpers/matchers/match-text-content.d.ts +0 -0
  91. /package/{build → dist}/helpers/matchers/match-text-content.js +0 -0
  92. /package/{build → dist}/helpers/matchers/match-text-content.js.map +0 -0
  93. /package/{build → dist}/helpers/object.d.ts +0 -0
  94. /package/{build → dist}/helpers/object.js +0 -0
  95. /package/{build → dist}/helpers/object.js.map +0 -0
  96. /package/{build → dist}/helpers/pointer-events.d.ts +0 -0
  97. /package/{build → dist}/helpers/pointer-events.js +0 -0
  98. /package/{build → dist}/helpers/pointer-events.js.map +0 -0
  99. /package/{build → dist}/helpers/text-content.d.ts +0 -0
  100. /package/{build → dist}/helpers/text-content.js +0 -0
  101. /package/{build → dist}/helpers/text-content.js.map +0 -0
  102. /package/{build → dist}/helpers/text-input.d.ts +0 -0
  103. /package/{build → dist}/helpers/text-input.js +0 -0
  104. /package/{build → dist}/helpers/text-input.js.map +0 -0
  105. /package/{build → dist}/helpers/timers.d.ts +0 -0
  106. /package/{build → dist}/helpers/timers.js +0 -0
  107. /package/{build → dist}/helpers/timers.js.map +0 -0
  108. /package/{build → dist}/helpers/validate-options.d.ts +0 -0
  109. /package/{build → dist}/helpers/validate-options.js +0 -0
  110. /package/{build → dist}/helpers/validate-options.js.map +0 -0
  111. /package/{build → dist}/helpers/wrap-async.d.ts +0 -0
  112. /package/{build → dist}/helpers/wrap-async.js +0 -0
  113. /package/{build → dist}/helpers/wrap-async.js.map +0 -0
  114. /package/{build → dist}/index.d.ts +0 -0
  115. /package/{build → dist}/index.js +0 -0
  116. /package/{build → dist}/index.js.map +0 -0
  117. /package/{build → dist}/matchers/extend-expect.d.ts +0 -0
  118. /package/{build → dist}/matchers/extend-expect.js +0 -0
  119. /package/{build → dist}/matchers/extend-expect.js.map +0 -0
  120. /package/{build → dist}/matchers/index.d.ts +0 -0
  121. /package/{build → dist}/matchers/index.js +0 -0
  122. /package/{build → dist}/matchers/index.js.map +0 -0
  123. /package/{build → dist}/matchers/to-be-busy.d.ts +0 -0
  124. /package/{build → dist}/matchers/to-be-busy.js +0 -0
  125. /package/{build → dist}/matchers/to-be-busy.js.map +0 -0
  126. /package/{build → dist}/matchers/to-be-checked.d.ts +0 -0
  127. /package/{build → dist}/matchers/to-be-checked.js +0 -0
  128. /package/{build → dist}/matchers/to-be-checked.js.map +0 -0
  129. /package/{build → dist}/matchers/to-be-disabled.d.ts +0 -0
  130. /package/{build → dist}/matchers/to-be-disabled.js +0 -0
  131. /package/{build → dist}/matchers/to-be-disabled.js.map +0 -0
  132. /package/{build → dist}/matchers/to-be-empty-element.d.ts +0 -0
  133. /package/{build → dist}/matchers/to-be-empty-element.js +0 -0
  134. /package/{build → dist}/matchers/to-be-empty-element.js.map +0 -0
  135. /package/{build → dist}/matchers/to-be-expanded.d.ts +0 -0
  136. /package/{build → dist}/matchers/to-be-expanded.js +0 -0
  137. /package/{build → dist}/matchers/to-be-expanded.js.map +0 -0
  138. /package/{build → dist}/matchers/to-be-on-the-screen.d.ts +0 -0
  139. /package/{build → dist}/matchers/to-be-on-the-screen.js +0 -0
  140. /package/{build → dist}/matchers/to-be-on-the-screen.js.map +0 -0
  141. /package/{build → dist}/matchers/to-be-partially-checked.d.ts +0 -0
  142. /package/{build → dist}/matchers/to-be-partially-checked.js +0 -0
  143. /package/{build → dist}/matchers/to-be-partially-checked.js.map +0 -0
  144. /package/{build → dist}/matchers/to-be-selected.d.ts +0 -0
  145. /package/{build → dist}/matchers/to-be-selected.js +0 -0
  146. /package/{build → dist}/matchers/to-be-selected.js.map +0 -0
  147. /package/{build → dist}/matchers/to-be-visible.d.ts +0 -0
  148. /package/{build → dist}/matchers/to-be-visible.js +0 -0
  149. /package/{build → dist}/matchers/to-be-visible.js.map +0 -0
  150. /package/{build → dist}/matchers/to-contain-element.d.ts +0 -0
  151. /package/{build → dist}/matchers/to-contain-element.js +0 -0
  152. /package/{build → dist}/matchers/to-contain-element.js.map +0 -0
  153. /package/{build → dist}/matchers/to-have-accessibility-value.d.ts +0 -0
  154. /package/{build → dist}/matchers/to-have-accessibility-value.js +0 -0
  155. /package/{build → dist}/matchers/to-have-accessibility-value.js.map +0 -0
  156. /package/{build → dist}/matchers/to-have-accessible-name.d.ts +0 -0
  157. /package/{build → dist}/matchers/to-have-accessible-name.js +0 -0
  158. /package/{build → dist}/matchers/to-have-accessible-name.js.map +0 -0
  159. /package/{build → dist}/matchers/to-have-display-value.d.ts +0 -0
  160. /package/{build → dist}/matchers/to-have-display-value.js +0 -0
  161. /package/{build → dist}/matchers/to-have-display-value.js.map +0 -0
  162. /package/{build → dist}/matchers/to-have-prop.d.ts +0 -0
  163. /package/{build → dist}/matchers/to-have-prop.js +0 -0
  164. /package/{build → dist}/matchers/to-have-prop.js.map +0 -0
  165. /package/{build → dist}/matchers/to-have-style.d.ts +0 -0
  166. /package/{build → dist}/matchers/to-have-style.js +0 -0
  167. /package/{build → dist}/matchers/to-have-style.js.map +0 -0
  168. /package/{build → dist}/matchers/to-have-text-content.d.ts +0 -0
  169. /package/{build → dist}/matchers/to-have-text-content.js +0 -0
  170. /package/{build → dist}/matchers/to-have-text-content.js.map +0 -0
  171. /package/{build → dist}/matchers/types.d.ts +0 -0
  172. /package/{build → dist}/matchers/types.js +0 -0
  173. /package/{build → dist}/matchers/types.js.map +0 -0
  174. /package/{build → dist}/matchers/utils.d.ts +0 -0
  175. /package/{build → dist}/matchers/utils.js +0 -0
  176. /package/{build → dist}/matchers/utils.js.map +0 -0
  177. /package/{build → dist}/matches.d.ts +0 -0
  178. /package/{build → dist}/matches.js +0 -0
  179. /package/{build → dist}/matches.js.map +0 -0
  180. /package/{build → dist}/native-state.d.ts +0 -0
  181. /package/{build → dist}/native-state.js +0 -0
  182. /package/{build → dist}/native-state.js.map +0 -0
  183. /package/{build → dist}/pure.d.ts +0 -0
  184. /package/{build → dist}/pure.js +0 -0
  185. /package/{build → dist}/pure.js.map +0 -0
  186. /package/{build → dist}/queries/display-value.d.ts +0 -0
  187. /package/{build → dist}/queries/display-value.js +0 -0
  188. /package/{build → dist}/queries/display-value.js.map +0 -0
  189. /package/{build → dist}/queries/hint-text.d.ts +0 -0
  190. /package/{build → dist}/queries/hint-text.js +0 -0
  191. /package/{build → dist}/queries/hint-text.js.map +0 -0
  192. /package/{build → dist}/queries/label-text.d.ts +0 -0
  193. /package/{build → dist}/queries/label-text.js +0 -0
  194. /package/{build → dist}/queries/label-text.js.map +0 -0
  195. /package/{build → dist}/queries/make-queries.d.ts +0 -0
  196. /package/{build → dist}/queries/make-queries.js +0 -0
  197. /package/{build → dist}/queries/make-queries.js.map +0 -0
  198. /package/{build → dist}/queries/options.d.ts +0 -0
  199. /package/{build → dist}/queries/options.js +0 -0
  200. /package/{build → dist}/queries/options.js.map +0 -0
  201. /package/{build → dist}/queries/placeholder-text.d.ts +0 -0
  202. /package/{build → dist}/queries/placeholder-text.js +0 -0
  203. /package/{build → dist}/queries/placeholder-text.js.map +0 -0
  204. /package/{build → dist}/queries/role.d.ts +0 -0
  205. /package/{build → dist}/queries/role.js +0 -0
  206. /package/{build → dist}/queries/role.js.map +0 -0
  207. /package/{build → dist}/queries/test-id.d.ts +0 -0
  208. /package/{build → dist}/queries/test-id.js +0 -0
  209. /package/{build → dist}/queries/test-id.js.map +0 -0
  210. /package/{build → dist}/queries/text.d.ts +0 -0
  211. /package/{build → dist}/queries/text.js +0 -0
  212. /package/{build → dist}/queries/text.js.map +0 -0
  213. /package/{build → dist}/render-hook.d.ts +0 -0
  214. /package/{build → dist}/render-hook.js +0 -0
  215. /package/{build → dist}/render-hook.js.map +0 -0
  216. /package/{build → dist}/render.d.ts +0 -0
  217. /package/{build → dist}/render.js +0 -0
  218. /package/{build → dist}/render.js.map +0 -0
  219. /package/{build → dist}/screen.d.ts +0 -0
  220. /package/{build → dist}/screen.js +0 -0
  221. /package/{build → dist}/screen.js.map +0 -0
  222. /package/{build → dist}/test-utils/console.d.ts +0 -0
  223. /package/{build → dist}/test-utils/console.js +0 -0
  224. /package/{build → dist}/test-utils/console.js.map +0 -0
  225. /package/{build → dist}/test-utils/events.d.ts +0 -0
  226. /package/{build → dist}/test-utils/events.js +0 -0
  227. /package/{build → dist}/test-utils/events.js.map +0 -0
  228. /package/{build → dist}/test-utils/json.d.ts +0 -0
  229. /package/{build → dist}/test-utils/json.js +0 -0
  230. /package/{build → dist}/test-utils/json.js.map +0 -0
  231. /package/{build → dist}/test-utils/react-version-gates.d.ts +0 -0
  232. /package/{build → dist}/test-utils/react-version-gates.js +0 -0
  233. /package/{build → dist}/test-utils/react-version-gates.js.map +0 -0
  234. /package/{build → dist}/test-utils/timers.d.ts +0 -0
  235. /package/{build → dist}/test-utils/timers.js +0 -0
  236. /package/{build → dist}/test-utils/timers.js.map +0 -0
  237. /package/{build → dist}/test-utils/version.d.ts +0 -0
  238. /package/{build → dist}/test-utils/version.js +0 -0
  239. /package/{build → dist}/test-utils/version.js.map +0 -0
  240. /package/{build → dist}/types.d.ts +0 -0
  241. /package/{build → dist}/types.js +0 -0
  242. /package/{build → dist}/types.js.map +0 -0
  243. /package/{build → dist}/user-event/clear.d.ts +0 -0
  244. /package/{build → dist}/user-event/clear.js +0 -0
  245. /package/{build → dist}/user-event/clear.js.map +0 -0
  246. /package/{build → dist}/user-event/index.d.ts +0 -0
  247. /package/{build → dist}/user-event/index.js +0 -0
  248. /package/{build → dist}/user-event/index.js.map +0 -0
  249. /package/{build → dist}/user-event/paste.d.ts +0 -0
  250. /package/{build → dist}/user-event/paste.js +0 -0
  251. /package/{build → dist}/user-event/paste.js.map +0 -0
  252. /package/{build → dist}/user-event/press/index.d.ts +0 -0
  253. /package/{build → dist}/user-event/press/index.js +0 -0
  254. /package/{build → dist}/user-event/press/index.js.map +0 -0
  255. /package/{build → dist}/user-event/press/press.d.ts +0 -0
  256. /package/{build → dist}/user-event/press/press.js +0 -0
  257. /package/{build → dist}/user-event/press/press.js.map +0 -0
  258. /package/{build → dist}/user-event/scroll/index.d.ts +0 -0
  259. /package/{build → dist}/user-event/scroll/index.js +0 -0
  260. /package/{build → dist}/user-event/scroll/index.js.map +0 -0
  261. /package/{build → dist}/user-event/scroll/scroll-to.d.ts +0 -0
  262. /package/{build → dist}/user-event/scroll/scroll-to.js +0 -0
  263. /package/{build → dist}/user-event/scroll/scroll-to.js.map +0 -0
  264. /package/{build → dist}/user-event/scroll/utils.d.ts +0 -0
  265. /package/{build → dist}/user-event/scroll/utils.js +0 -0
  266. /package/{build → dist}/user-event/scroll/utils.js.map +0 -0
  267. /package/{build → dist}/user-event/setup/index.d.ts +0 -0
  268. /package/{build → dist}/user-event/setup/index.js +0 -0
  269. /package/{build → dist}/user-event/setup/index.js.map +0 -0
  270. /package/{build → dist}/user-event/setup/setup.d.ts +0 -0
  271. /package/{build → dist}/user-event/setup/setup.js +0 -0
  272. /package/{build → dist}/user-event/setup/setup.js.map +0 -0
  273. /package/{build → dist}/user-event/type/index.d.ts +0 -0
  274. /package/{build → dist}/user-event/type/index.js +0 -0
  275. /package/{build → dist}/user-event/type/index.js.map +0 -0
  276. /package/{build → dist}/user-event/type/parse-keys.d.ts +0 -0
  277. /package/{build → dist}/user-event/type/parse-keys.js +0 -0
  278. /package/{build → dist}/user-event/type/parse-keys.js.map +0 -0
  279. /package/{build → dist}/user-event/type/type.d.ts +0 -0
  280. /package/{build → dist}/user-event/type/type.js +0 -0
  281. /package/{build → dist}/user-event/type/type.js.map +0 -0
  282. /package/{build → dist}/user-event/utils/content-size.d.ts +0 -0
  283. /package/{build → dist}/user-event/utils/content-size.js +0 -0
  284. /package/{build → dist}/user-event/utils/content-size.js.map +0 -0
  285. /package/{build → dist}/user-event/utils/dispatch-event.d.ts +0 -0
  286. /package/{build → dist}/user-event/utils/dispatch-event.js +0 -0
  287. /package/{build → dist}/user-event/utils/dispatch-event.js.map +0 -0
  288. /package/{build → dist}/user-event/utils/index.d.ts +0 -0
  289. /package/{build → dist}/user-event/utils/index.js +0 -0
  290. /package/{build → dist}/user-event/utils/index.js.map +0 -0
  291. /package/{build → dist}/user-event/utils/wait.d.ts +0 -0
  292. /package/{build → dist}/user-event/utils/wait.js +0 -0
  293. /package/{build → dist}/user-event/utils/wait.js.map +0 -0
  294. /package/{build → dist}/wait-for-element-to-be-removed.d.ts +0 -0
  295. /package/{build → dist}/wait-for-element-to-be-removed.js +0 -0
  296. /package/{build → dist}/wait-for-element-to-be-removed.js.map +0 -0
  297. /package/{build → dist}/wait-for.d.ts +0 -0
  298. /package/{build → dist}/wait-for.js +0 -0
  299. /package/{build → dist}/wait-for.js.map +0 -0
  300. /package/{build → dist}/within.d.ts +0 -0
  301. /package/{build → dist}/within.js +0 -0
  302. /package/{build → dist}/within.js.map +0 -0
package/matchers.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './build/matchers';
1
+ export * from './dist/matchers';
package/matchers.js CHANGED
@@ -1,2 +1,2 @@
1
- // makes it so people can import from '@testing-library/react-native/pure'
2
- module.exports = require('./build/matchers');
1
+ // makes it so people can import from '@testing-library/react-native/matchers'
2
+ module.exports = require('./dist/matchers');
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@testing-library/react-native",
3
- "version": "14.0.0-rc.1",
3
+ "version": "14.0.0-rc.2",
4
4
  "description": "Simple and complete React Native testing utilities that encourage good testing practices.",
5
- "main": "build/index.js",
6
- "types": "build/index.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://www.github.com/callstack/react-native-testing-library.git"
@@ -23,7 +23,7 @@
23
23
  "integration"
24
24
  ],
25
25
  "scripts": {
26
- "clean": "del build",
26
+ "clean": "del dist",
27
27
  "test": "jest",
28
28
  "test:ci": "jest --maxWorkers=2",
29
29
  "test:ci:coverage": "jest --maxWorkers=2 --collectCoverage=true",
@@ -39,7 +39,7 @@
39
39
  "validate:examples": "yarn --cwd examples/basic validate && yarn --cwd examples/cookbook validate",
40
40
  "validate:all": "yarn validate && yarn validate:examples && yarn docs:check && yarn --cwd website validate && yarn --cwd experiments-app validate",
41
41
  "validate:fix": "yarn prettier:fix && yarn lint --fix && yarn typecheck && yarn test -u && docs:generate",
42
- "build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
42
+ "build:js": "babel src --out-dir dist --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
43
43
  "build:ts": "tsc --build tsconfig.release.json",
44
44
  "build": "yarn clean && yarn build:js && yarn build:ts",
45
45
  "release": "release-it",
@@ -47,7 +47,7 @@
47
47
  "release:codemods": "yarn test:codemods && yarn dlx codemod@latest publish codemods/v14-async-functions && yarn dlx codemod@latest publish codemods/v14-update-deps"
48
48
  },
49
49
  "files": [
50
- "build/",
50
+ "dist/",
51
51
  "matchers.js",
52
52
  "matchers.d.ts",
53
53
  "pure.js",
package/pure.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './build/pure';
1
+ export * from './dist/pure';
package/pure.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // makes it so people can import from '@testing-library/react-native/pure'
2
- module.exports = require('./build/pure');
2
+ module.exports = require('./dist/pure');
@@ -1,21 +0,0 @@
1
- # Architecture And API Design
2
-
3
- ## Project overview
4
-
5
- `@testing-library/react-native` provides utilities for testing React Native components in ways that resemble real usage and avoid implementation details.
6
-
7
- - Tech stack: TypeScript, React Native, Jest
8
- - Core principle: the closer tests are to real usage, the more confidence they provide
9
- - Runtime model: the library simulates the React Native runtime on top of `test-renderer`
10
-
11
- ## API design principles
12
-
13
- - Prefer a small public API surface.
14
- - Expose underlying React and `react-reconciler` capabilities when Testing Libraries need them.
15
- - Render host elements only.
16
- - Provide escape hatches to fibers when needed.
17
-
18
- ## Key entry points
19
-
20
- - `src/pure.ts`: side-effect-free core logic without auto-cleanup
21
- - `src/index.ts`: main entry point that re-exports `pure` and adds auto-cleanup side effects
@@ -1,27 +0,0 @@
1
- # Build, Validation, And Repo Layout
2
-
3
- ## Common commands
4
-
5
- - Install dependencies: `yarn install`
6
- - Run tests: `yarn test`
7
- - Run tests in CI mode: `yarn test:ci`
8
- - Type check: `yarn typecheck`
9
- - Lint source files: `yarn lint`
10
- - Check formatting: `yarn prettier`
11
- - Validate the main package: `yarn validate`
12
- - Build the package: `yarn build`
13
-
14
- ## Command notes
15
-
16
- - `yarn lint` runs ESLint on `src`.
17
- - `yarn validate` runs typecheck, tests, lint, and Prettier checks for the main package.
18
- - `yarn build` cleans `build/`, transpiles source with Babel, and emits TypeScript declarations.
19
-
20
- ## Repo layout
21
-
22
- - `src/`: source code
23
- - `src/pure.ts`: core logic without side effects
24
- - `src/index.ts`: main entry point with auto-cleanup side effects
25
- - `examples/`: example React Native apps
26
- - `website/`: documentation site
27
- - `codemods/`: codemod implementations and tests
@@ -1,12 +0,0 @@
1
- # TypeScript And Code Style
2
-
3
- ## Linting and formatting
4
-
5
- - ESLint uses `@callstack/eslint-config` together with `typescript-eslint`.
6
- - Important enforced rules include `no-console` and consistent type imports.
7
- - Prettier is the formatter.
8
- - Formatting defaults include single quotes and trailing commas.
9
-
10
- ## Imports
11
-
12
- - Keep imports sorted with `eslint-plugin-simple-import-sort`.
@@ -1,56 +0,0 @@
1
- # Example App Regeneration
2
-
3
- ## General workflow
4
-
5
- - Regenerate Expo example apps in a temporary directory, then copy the fresh scaffold into place.
6
- - Before replacing an example app, move the current app directory to `/tmp` so repo-specific files can be restored selectively.
7
- - After copying a generated app into `examples/`, remove the generated `.git` directory and `node_modules`, then reinstall from inside the repo workspace.
8
-
9
- ## `examples/basic`
10
-
11
- - Generate from the Expo blank TypeScript template:
12
- - `yarn create expo-app /tmp/rntl-basic-fresh --template blank-typescript --yes`
13
- - Restore these repo-specific files on top of the fresh scaffold:
14
- - `App.tsx`
15
- - `components/`
16
- - `__tests__/`
17
- - `theme.ts`
18
- - `jest.config.js`
19
- - `jest-setup.ts`
20
- - `babel.config.js`
21
- - `eslint.config.mjs`
22
- - `README.md`
23
- - `.expo-shared/assets.json` if it existed before
24
- - Keep the fresh Expo entrypoint `index.ts`.
25
- - Update `package.json` and `app.json` to match repo naming and scripts.
26
-
27
- ## `examples/cookbook`
28
-
29
- - Generate from a router-enabled Expo scaffold:
30
- - `yarn create expo-app /tmp/rntl-cookbook-fresh --example with-router --yes`
31
- - Restore these repo-specific files on top of the fresh scaffold:
32
- - `app/`
33
- - tutorial test directories such as `basics-tutorial/` and `basics-tutorial-react-strict-dom/`
34
- - `theme.ts`
35
- - `jest.config.js`
36
- - `jest-setup.ts`
37
- - `babel.config.js`
38
- - `.eslintrc`
39
- - `.eslintignore`
40
- - `README.md`
41
- - custom assets not present in the scaffold, such as `assets/gradientRNBanner.png`
42
- - `.expo-shared/assets.json` if it existed before
43
- - Keep the fresh Expo Router entry setup.
44
- - Reapply the cookbook-specific dependency set in `package.json` and `app.json`.
45
-
46
- ## Validation after regeneration
47
-
48
- - Run these commands from inside the regenerated app directory:
49
- - `yarn expo install --check`
50
- - `yarn lint`
51
- - `yarn typecheck`
52
- - `yarn test --watchman=false`
53
-
54
- ## Lockfile guidance
55
-
56
- - If the fresh scaffold causes dependency-resolution churn, restore the previous `yarn.lock` first and then run `yarn install` instead of re-resolving the full tree.
@@ -1,13 +0,0 @@
1
- # Git, Releases, And PR Workflow
2
-
3
- ## Commits and releases
4
-
5
- - Use Conventional Commits such as `fix:`, `feat:`, and `chore:`.
6
- - Releases are managed with `release-it`.
7
-
8
- ## PR draft workflow
9
-
10
- - Maintain `PR.txt` at the repository root using the structure from `.github/pull_request_template.md`.
11
- - Keep `PR.txt` aligned with the current branch diff relative to `origin/main`.
12
- - Include tests actually run and any known validation gaps in `PR.txt`.
13
- - Do not commit `PR.txt`.
@@ -1,20 +0,0 @@
1
- # Testing Conventions
2
-
3
- ## Test stack
4
-
5
- - Test framework: Jest with the `react-native` preset
6
- - Test environment setup: `jest-setup.ts`
7
- - Auto-cleanup is configured from `src/index.ts` unless explicitly skipped
8
-
9
- ## Test location and coverage
10
-
11
- - Library tests are typically colocated under `src/**/__tests__`
12
- - Coverage is collected from `src` and excludes test files
13
-
14
- ## Test organization
15
-
16
- - Use `describe` blocks to group tests by theme.
17
- - Do not put all tests into a single `describe`.
18
- - Avoid nested `describe` blocks.
19
- - If a `describe` would contain only one test, make that test top-level instead.
20
- - Prefer `test` over `it`.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes