()
| 5 | describe(`applyMutations merge logic`, () => { |
| 6 | // Create a shared collection for all tests |
| 7 | const createMockCollection = () => |
| 8 | createCollection<{ |
| 9 | id: string |
| 10 | name: string |
| 11 | value?: number |
| 12 | }>({ |
| 13 | id: `test-collection`, |
| 14 | getKey: (item) => item.id, |
| 15 | onInsert: async () => {}, // Add required handler |
| 16 | onUpdate: async () => {}, // Add required handler |
| 17 | onDelete: async () => {}, // Add required handler |
| 18 | sync: { |
| 19 | sync: () => {}, |
| 20 | }, |
| 21 | }) |
| 22 | |
| 23 | it(`should merge update after insert correctly`, () => { |
| 24 | const transaction = createTransaction({ |
no test coverage detected
searching dependent graphs…