Commit ada8e78
chore(test): migrate from Enzyme to React Testing Library (#249)
* chore(test): migrate from Enzyme to React Testing Library
Replace enzyme and enzyme-adapter-react-16 with @testing-library/react,
@testing-library/jest-dom, and @testing-library/user-event for React 18
compatibility.
- Update jest.config.js to use setupFilesAfterEnv with RTL setup
- Migrate all existing tests to RTL idioms (render, container queries)
- Add additional test coverage for axis restrictions, constraints,
callbacks, handle directions, event handling, and state management
- Update react-test-renderer to v18 for snapshot compatibility
All 45 tests pass with 98%+ coverage.
Co-authored-by: Sculptor <sculptor@imbue.com>
* docs: add CLAUDE.md with project instructions
Co-authored-by: Sculptor <sculptor@imbue.com>
---------
Co-authored-by: Samuel Reed <foo@bar.com>
Co-authored-by: Sculptor <sculptor@imbue.com>1 parent 070d0ad commit ada8e78
File tree
8 files changed
+1331
-462
lines changed- __tests__
- setupTests
8 files changed
+1331
-462
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments