Commit 9be365e
committed
Document why the render wrapper and setup import exist in render.tsx
Add explicit comments explaining that tests must import from this module
(not directly from @testing-library/react) to ensure the ./setup
side-effects run first: ResizeObserver polyfill, Event/CustomEvent
alignment with jsdom, and afterEach(cleanup) registration.1 parent 5b67922 commit 9be365e
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
14 | 29 | | |
15 | 30 | | |
16 | 31 | | |
| |||
0 commit comments