@livestore/react 0.3.2-dev.1 → 0.3.2-dev.11

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.
@@ -154,13 +154,7 @@ Vitest.describe('useClientDocument', () => {
154
154
 
155
155
  expect(renderCount.val).toBe(1)
156
156
 
157
- ReactTesting.act(() =>
158
- store.commit(
159
- LiveStore.rawSqlEvent({
160
- sql: LiveStore.sql`INSERT INTO todos (id, text, completed) VALUES ('t1', 'buy milk', 0)`,
161
- }),
162
- ),
163
- )
157
+ ReactTesting.act(() => store.commit(events.todoCreated({ id: 't1', text: 'buy milk', completed: false })))
164
158
 
165
159
  expect(renderCount.val).toBe(1)
166
160
  expect(renderResult.getByRole('current-id').innerHTML).toMatchInlineSnapshot('"Current Task Id: -"')