Commit ee82753
fix: update ShapeStream mock constructor for vitest v4
Vitest v4 changed how mock functions work as constructors. Updated
the ShapeStream mock to use mockImplementation with a regular function
instead of an arrow function, allowing it to work properly with `new`.
Fixes electric-db-collection test failures caused by "not a constructor"
error in vitest v4.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ab2cf14 commit ee82753
File tree
2 files changed
+6
-2
lines changed- packages/electric-db-collection/tests
2 files changed
+6
-2
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments