MCPcopy Index your code
hub / github.com/TanStack/db / createTestData

Function createTestData

packages/powersync-db-collection/tests/powersync.test.ts:74–82  ·  view source on GitHub ↗
(db: AbstractPowerSyncDatabase)

Source from the content-addressed store, hash-verified

72 }
73
74 async function createTestData(db: AbstractPowerSyncDatabase) {
75 await db.execute(`
76 INSERT into documents (id, name)
77 VALUES
78 (uuid(), 'one'),
79 (uuid(), 'two'),
80 (uuid(), 'three')
81 `)
82 }
83
84 describe(`sync`, () => {
85 it(`should initialize and fetch initial data`, async () => {

Callers 1

powersync.test.tsFile · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…