@powersync/service-core-tests 0.18.4 → 0.18.5

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.
@@ -4,6 +4,23 @@ import { getTestStorage } from '../test-utils/leased-storage.js';
4
4
  import * as test_utils from '../test-utils/test-utils-index.js';
5
5
  import { compactActive } from './util.js';
6
6
 
7
+ const SNAPSHOT_SYNC_CONFIG = /* yaml */ `
8
+ # sync config fixture.
9
+ config:
10
+ edition: 3
11
+ streams:
12
+ synced:
13
+ query: SELECT * FROM synced_table
14
+ dynamic:
15
+ query: SELECT * FROM data_table WHERE owner_id IN (SELECT user_id FROM parameter_table WHERE user_id = auth.user_id())
16
+ wildcard:
17
+ query: SELECT * FROM "wildcard_%"
18
+ event_definitions:
19
+ changes:
20
+ payloads:
21
+ - SELECT * FROM event_table
22
+ `;
23
+
7
24
  /**
8
25
  * @example
9
26
  * ```TypeScript
@@ -18,6 +35,66 @@ export function registerDataStorageCheckpointTests(config: storage.TestStorageCo
18
35
  const generateStorageFactory = config.factory;
19
36
  const storageVersion = config.storageVersion;
20
37
 
38
+ test('snapshot completion - unused tables create no snapshot work', async () => {
39
+ await using factory = await generateStorageFactory();
40
+ const stream = await factory.updateSyncRules(
41
+ updateSyncRulesFromYaml(SNAPSHOT_SYNC_CONFIG, { validate: true, storageVersion })
42
+ );
43
+ const bucketStorage = await getTestStorage(factory, stream);
44
+ await using writer = await bucketStorage.createWriter(test_utils.BATCH_OPTIONS);
45
+
46
+ // Discover an unused table without performing snapshot work for it.
47
+ const unused = await writer.resolveTables({
48
+ connection_id: 1,
49
+ source: sourceDescriptor('unused_table'),
50
+ idGenerator: () => {
51
+ throw new Error('An unused table must not allocate a persisted source-table id');
52
+ }
53
+ });
54
+ expect(unused).toEqual({ tables: [], dropTables: [] });
55
+ await writer.markSnapshotDone('1/2');
56
+
57
+ // Checkpoints must wait until replication reaches the snapshot's consistency boundary.
58
+ expect((await writer.keepalive('1/1')).checkpointBlocked).toBe(true);
59
+ expect((await writer.keepalive('1/2')).checkpointBlocked).toBe(false);
60
+ expect((await bucketStorage.getStatus()).snapshotDone).toBe(true);
61
+ });
62
+
63
+ test.each([
64
+ { tableName: 'synced_table', syncData: true, syncParameters: false, syncEvent: false },
65
+ { tableName: 'wildcard_tasks', syncData: true, syncParameters: false, syncEvent: false },
66
+ { tableName: 'parameter_table', syncData: false, syncParameters: true, syncEvent: false },
67
+ { tableName: 'event_table', syncData: false, syncParameters: false, syncEvent: true }
68
+ ])(
69
+ 'snapshot completion - keeps $tableName as a blocker',
70
+ async ({ tableName, syncData, syncParameters, syncEvent }) => {
71
+ await using factory = await generateStorageFactory();
72
+ const stream = await factory.updateSyncRules(
73
+ updateSyncRulesFromYaml(SNAPSHOT_SYNC_CONFIG, { validate: true, storageVersion })
74
+ );
75
+ const bucketStorage = await getTestStorage(factory, stream);
76
+ await using writer = await bucketStorage.createWriter(test_utils.BATCH_OPTIONS);
77
+
78
+ // Discover an unused table and a required table whose snapshot is still pending.
79
+ await writer.resolveTables({ connection_id: 1, source: sourceDescriptor('unused_table') });
80
+ const pending = await writer.resolveTables({ connection_id: 1, source: sourceDescriptor(tableName) });
81
+ expect(pending.tables).toHaveLength(1);
82
+ expect(pending.tables[0]).toMatchObject({ syncData, syncParameters, syncEvent, snapshotComplete: false });
83
+
84
+ // Both conflict modes must keep checkpoints blocked while required snapshot work remains.
85
+ await writer.markSnapshotDone('1/2', { throwOnConflict: false });
86
+ expect((await writer.keepalive('1/2')).checkpointBlocked).toBe(true);
87
+ await expect(writer.markSnapshotDone('1/2')).rejects.toThrow(`Tables: public.${tableName}`);
88
+ expect((await writer.keepalive('1/2')).checkpointBlocked).toBe(true);
89
+
90
+ // Complete only the required table, then advance replication to the checkpoint boundary.
91
+ await writer.markTableSnapshotDone(pending.tables);
92
+ await writer.markSnapshotDone('1/2');
93
+ expect((await writer.keepalive('1/2')).checkpointBlocked).toBe(false);
94
+ expect((await bucketStorage.getStatus()).snapshotDone).toBe(true);
95
+ }
96
+ );
97
+
21
98
  test('managed write checkpoints - checkpoint after write', async (context) => {
22
99
  await using factory = await generateStorageFactory();
23
100
  const r = await factory.configureSyncRules(
@@ -442,6 +519,16 @@ bucket_definitions:
442
519
  );
443
520
  }
444
521
 
522
+ function sourceDescriptor(name: string): storage.SourceEntityDescriptor {
523
+ return {
524
+ connectionTag: storage.SourceTable.DEFAULT_TAG,
525
+ schema: 'public',
526
+ name,
527
+ objectId: name,
528
+ replicaIdColumns: [{ name: 'id', type: 'text', typeId: 25 }]
529
+ };
530
+ }
531
+
445
532
  async function createManagedWriteCheckpoint(
446
533
  bucketStorage: storage.SyncRulesBucketStorage,
447
534
  checkpoint: storage.ManagedWriteCheckpointOptions
@@ -664,6 +664,102 @@ bucket_definitions:
664
664
  ]);
665
665
  });
666
666
 
667
+ test('update without stored record only resnapshots when TOAST values are missing', async () => {
668
+ await using factory = await generateStorageFactory();
669
+ const { stream: replicationStream, content: syncRules } = await test_utils.deploySyncRules(
670
+ factory,
671
+ updateSyncRulesFromYaml(
672
+ /* yaml */ `
673
+ # sync config fixture.
674
+ config:
675
+ edition: 3
676
+ streams:
677
+ global:
678
+ query: SELECT id, description FROM "%"
679
+ `,
680
+ { storageVersion }
681
+ )
682
+ );
683
+ const bucketStorage = await getTestStorage(factory, replicationStream);
684
+ const unavailable: storage.SaveUpdate[] = [];
685
+ await using writer = await bucketStorage.createWriter({
686
+ ...test_utils.BATCH_OPTIONS,
687
+ markRecordUnavailable: (record) => {
688
+ unavailable.push(record);
689
+ }
690
+ });
691
+ const sourceTable = await test_utils.resolveTestTable(writer, 'test', ['id'], config);
692
+ await writer.markAllSnapshotDone('1/1');
693
+
694
+ // Complete row for a record we have no current_data for, e.g. streamed before the
695
+ // snapshot reached it. It can be evaluated and stored as-is, so no resnapshot is needed.
696
+ await writer.save({
697
+ sourceTable,
698
+ tag: storage.SaveOperationTag.UPDATE,
699
+ after: {
700
+ id: 'test1',
701
+ description: 'test1'
702
+ },
703
+ afterReplicaId: test_utils.rid('test1')
704
+ });
705
+ await writer.flush();
706
+ expect(unavailable).toEqual([]);
707
+
708
+ // The stored copy is then used to fill in TOAST values on later updates.
709
+ await writer.save({
710
+ sourceTable,
711
+ tag: storage.SaveOperationTag.UPDATE,
712
+ after: {
713
+ id: 'test1',
714
+ description: undefined
715
+ },
716
+ afterReplicaId: test_utils.rid('test1')
717
+ });
718
+
719
+ // Partial row for a record we have no current_data for: cannot be evaluated, must be resnapshotted.
720
+ await writer.save({
721
+ sourceTable,
722
+ tag: storage.SaveOperationTag.UPDATE,
723
+ after: {
724
+ id: 'test2',
725
+ description: undefined
726
+ },
727
+ afterReplicaId: test_utils.rid('test2')
728
+ });
729
+ await writer.flush();
730
+ expect(unavailable.map((record) => record.after.id)).toEqual(['test2']);
731
+
732
+ // Complete the targeted resnapshot before committing source progress.
733
+ await writer.save({
734
+ sourceTable,
735
+ tag: storage.SaveOperationTag.INSERT,
736
+ after: {
737
+ id: 'test2',
738
+ description: 'test2'
739
+ },
740
+ afterReplicaId: test_utils.rid('test2')
741
+ });
742
+ await writer.flush();
743
+ await writer.commit('1/1');
744
+
745
+ const checkpoint = await bucketStorage.getCheckpoint();
746
+ const request = bucketRequest(syncRules, 'global|0[]');
747
+ const batch = await test_utils.getBatchArray(bucketStorage.getBucketDataBatch(checkpoint, [request]));
748
+ const data = batch[0].chunkData.data.map((d) => {
749
+ return {
750
+ op: d.op,
751
+ object_id: d.object_id,
752
+ data: normalizeOplogData(d.data)
753
+ };
754
+ });
755
+
756
+ expect(data).toEqual([
757
+ { op: 'PUT', object_id: 'test1', data: JSON.stringify({ id: 'test1', description: 'test1' }) },
758
+ { op: 'PUT', object_id: 'test1', data: JSON.stringify({ id: 'test1', description: 'test1' }) },
759
+ { op: 'PUT', object_id: 'test2', data: JSON.stringify({ id: 'test2', description: 'test2' }) }
760
+ ]);
761
+ });
762
+
667
763
  test('batch with overlapping replica ids', async () => {
668
764
  // This test checks that we get the correct output when processing rows with:
669
765
  // 1. changing replica ids
@@ -0,0 +1,314 @@
1
+ import {
2
+ AbstractReplicationJob,
3
+ AbstractReplicator,
4
+ AbstractReplicatorOptions,
5
+ getInvalidLocalSyncConfigStatus,
6
+ RouteAPI,
7
+ storage,
8
+ SyncConfigEngine,
9
+ updateSyncRulesFromYaml
10
+ } from '@powersync/service-core';
11
+ import { describe, expect, test, vi } from 'vitest';
12
+ import { BATCH_OPTIONS, bucketRequest, getBatchArray, resolveTestTable, rid } from '../test-utils/general-utils.js';
13
+ import { getTestStorage, releaseTestStorageLease } from '../test-utils/leased-storage.js';
14
+ import { METRICS_HELPER } from '../test-utils/MetricsHelper.js';
15
+
16
+ const INVALID_CONFIG = /* yaml */ `
17
+ # Rejected local deployment.
18
+ config:
19
+ edition: 3
20
+ streams:
21
+ rejected:
22
+ query: SELECT FROM
23
+ `;
24
+
25
+ /**
26
+ * Exercise startup and ownership synchronously; storage and its lifecycle remain real.
27
+ * Source ingestion is outside this suite, so tests advance snapshots through the real writer.
28
+ */
29
+ class ConfigTestReplicator extends AbstractReplicator {
30
+ readonly syncConfigEngine: SyncConfigEngine;
31
+ constructor(options: Omit<AbstractReplicatorOptions, 'syncConfigEngine'>) {
32
+ const syncConfigEngine = new SyncConfigEngine(
33
+ options.configuration.sync_rules,
34
+ () =>
35
+ ({
36
+ getParseSyncRulesOptions: () => ({ defaultSchema: 'public' })
37
+ }) as RouteAPI
38
+ );
39
+ super({ ...options, syncConfigEngine });
40
+ this.syncConfigEngine = syncConfigEngine;
41
+ }
42
+
43
+ createJob(): AbstractReplicationJob {
44
+ throw new Error('This suite drives storage snapshots directly');
45
+ }
46
+
47
+ async cleanUp(): Promise<void> {}
48
+
49
+ async testConnection() {
50
+ return { connectionDescription: 'test' };
51
+ }
52
+
53
+ async initializeConfig() {
54
+ // Run startup admission without entering the continuous replication loop.
55
+ const controller = new AbortController();
56
+ controller.abort();
57
+ this['abortController'] = controller;
58
+ await this['runLoop']();
59
+ this['abortController'] = new AbortController();
60
+ }
61
+
62
+ accepts(stream: storage.PersistedReplicationStream) {
63
+ return this.shouldHandleReplicationStream(stream, INVALID_CONFIG, 'rejected', true);
64
+ }
65
+
66
+ async cleanStopped(stream: storage.PersistedReplicationStream) {
67
+ await this.terminateStoppedReplicationStream(stream, this.storage.getInstance(stream));
68
+ }
69
+ }
70
+
71
+ /**
72
+ * Shared backend coverage for rejected local configs through replacement activation and cleanup.
73
+ */
74
+ export function registerInvalidSyncConfigTests(
75
+ config: Pick<storage.TestStorageConfig, 'factory' | 'tableIdStrings'>,
76
+ storageVersion: number
77
+ ) {
78
+ const { factory } = config;
79
+ describe('invalid local sync config lifecycle', () => {
80
+ /**
81
+ * An older service persisted invalid B while valid A was active. After upgrading with
82
+ * rejected local input, startup supersedes pending work while preserving active A.
83
+ */
84
+ test.each([{ persistedInvalid: false }, { persistedInvalid: true }])(
85
+ 'stops pending work on rejection, including previously persisted invalid work: $persistedInvalid',
86
+ async ({ persistedInvalid }) => {
87
+ await using backend = await factory();
88
+ const valid = /* yaml */ `
89
+ # Existing active deployment.
90
+ config:
91
+ edition: 3
92
+ streams:
93
+ todos:
94
+ query: SELECT id FROM todos
95
+ `;
96
+ const original = await backend.updateSyncRules(
97
+ updateSyncRulesFromYaml(valid, { storageVersion, version_label: 'active' })
98
+ );
99
+ const instance = await getTestStorage(backend, original);
100
+ {
101
+ await using writer = await instance.createWriter(BATCH_OPTIONS);
102
+ await writer.markAllSnapshotDone('1/1');
103
+ await writer.commit('1/1');
104
+ }
105
+
106
+ // Persist pending work directly, including invalid input an older service could have stored.
107
+ const invalid = updateSyncRulesFromYaml(persistedInvalid ? INVALID_CONFIG : valid + '\n# Pending B', {
108
+ storageVersion,
109
+ version_label: 'rejected'
110
+ });
111
+ expect(invalid.config.parsed.errors.some((error) => error.type === 'fatal')).toBe(persistedInvalid);
112
+ const persisted = await backend.updateSyncRules(invalid);
113
+ // Incremental storage keeps A and B in one stream, so cancellation must preserve A.
114
+ if (storageVersion >= 3) {
115
+ expect(persisted.replicationStreamId).toBe(original.replicationStreamId);
116
+ expect(persisted.syncConfigContent.map((config) => config.syncConfigState)).toEqual([
117
+ storage.SyncRuleState.ACTIVE,
118
+ storage.SyncRuleState.PROCESSING
119
+ ]);
120
+ }
121
+ const replicator = new ConfigTestReplicator({
122
+ id: 'upgrade-test',
123
+ configuration: {
124
+ connections: [],
125
+ sync_rules: { present: true, exit_on_error: false, version_label: 'rejected', content: INVALID_CONFIG }
126
+ },
127
+ storageEngine: { activeBucketStorage: backend } as storage.StorageEngine,
128
+ metricsEngine: METRICS_HELPER.metricsEngine,
129
+ rateLimiter: { waitUntilAllowed: async () => {}, reportError: () => {}, mayPing: () => false }
130
+ });
131
+ const configure = vi.spyOn(backend, 'configureSyncRules');
132
+ const pendingBefore = await backend.getDeployingSyncConfig();
133
+ expect(pendingBefore).not.toBeNull();
134
+ {
135
+ // Keep the old A/B writer open while startup cancels its pending config.
136
+ await using staleWriter = persistedInvalid
137
+ ? undefined
138
+ : await (await getTestStorage(backend, persisted)).createWriter(BATCH_OPTIONS);
139
+ await replicator.initializeConfig();
140
+ // A writer opened before cancellation must not activate the stopped config.
141
+ if (staleWriter) {
142
+ await staleWriter.markAllSnapshotDone('1/2');
143
+ await staleWriter.commit('1/2');
144
+ }
145
+ }
146
+ expect(configure).not.toHaveBeenCalled();
147
+ expect(await backend.getDeployingSyncConfig()).toBeNull();
148
+ expect((await backend.getActiveSyncConfig())?.content.sync_rules_content).toBe(valid);
149
+ const stream = (await backend.getReplicatingReplicationStreams()).find(
150
+ (stream) => stream.replicationStreamId === original.replicationStreamId
151
+ )!;
152
+ expect(stream).toBeDefined();
153
+ expect(await replicator.accepts(stream)).toBe(true);
154
+ const activeStorage = await getTestStorage(backend, stream);
155
+ {
156
+ await using writer = await activeStorage.createWriter(BATCH_OPTIONS);
157
+ const table = await resolveTestTable(writer, 'todos', ['id'], config);
158
+ await writer.save({
159
+ sourceTable: table,
160
+ tag: storage.SaveOperationTag.INSERT,
161
+ after: { id: 'after-cancellation' },
162
+ afterReplicaId: rid('after-cancellation')
163
+ });
164
+ await writer.markAllSnapshotDone('1/3');
165
+ await writer.commit('1/3');
166
+ }
167
+ const active = (await backend.getActiveSyncConfig())!;
168
+ const checkpoint = await activeStorage.getCheckpoint();
169
+ const data = await getBatchArray(
170
+ activeStorage.getBucketDataBatch(checkpoint, [bucketRequest(active.content, 'todos|0[]')])
171
+ );
172
+ expect(data.flatMap((chunk) => chunk.chunkData.data)).toEqual(
173
+ expect.arrayContaining([expect.objectContaining({ op: 'PUT', object_id: 'after-cancellation' })])
174
+ );
175
+ expect(checkpoint.lsn).toBe('1/3');
176
+
177
+ expect(
178
+ getInvalidLocalSyncConfigStatus(await replicator.syncConfigEngine.getConfigured(), true, 'rejected')?.content
179
+ ).toBe(INVALID_CONFIG);
180
+ }
181
+ );
182
+
183
+ /**
184
+ * Start with valid config A active, then restart a worker with invalid local config B.
185
+ * B must stay out of storage while remaining visible in diagnostics throughout:
186
+ * - automatic recovery of A after source history loss;
187
+ * Recovery must produce replacement work the worker accepts, activate it, and clean
188
+ * up the old stream without losing B's diagnostics or accepting unrelated deployments.
189
+ */
190
+ test.each([
191
+ { recoveryTiming: 'after startup' },
192
+ { recoveryTiming: 'before startup' },
193
+ { recoveryTiming: 'superseded recovery' },
194
+ { recoveryTiming: 'missing recovery' }
195
+ ] as const)(
196
+ 'recovery $recoveryTiming retains rejected diagnostics through activation and cleanup',
197
+ async ({ recoveryTiming }) => {
198
+ await using backend = await factory();
199
+ const content = /* yaml */ `
200
+ # Active stored deployment.
201
+ config:
202
+ edition: 3
203
+ streams:
204
+ todos:
205
+ query: SELECT id FROM todos
206
+ `;
207
+ // Set the initial storage version through deployment options, leaving it out of the YAML.
208
+ // Manual reprocessing can then use the backend's current default; recovery keeps the original version.
209
+ const original = await backend.updateSyncRules(
210
+ updateSyncRulesFromYaml(content, { version_label: 'active', storageVersion })
211
+ );
212
+ // Complete an empty snapshot using a real writer to trigger backend activation.
213
+ async function activate(stream: storage.PersistedReplicationStream) {
214
+ const instance = await getTestStorage(backend, stream);
215
+ await using writer = await instance.createWriter(BATCH_OPTIONS);
216
+ await writer.markAllSnapshotDone('1/1');
217
+ await writer.commit('1/1');
218
+ }
219
+ await activate(original);
220
+ const originalActive = await backend.getActiveSyncConfig();
221
+ expect(originalActive?.content.sync_rules_content).toBe(content);
222
+
223
+ // Load rejected config B exactly as startup does; it must not replace stored config A.
224
+ const settings = {
225
+ present: true,
226
+ content: INVALID_CONFIG,
227
+ version_label: 'rejected',
228
+ exit_on_error: false
229
+ };
230
+ const storageEngine = { activeBucketStorage: backend } as storage.StorageEngine;
231
+ const replicator = new ConfigTestReplicator({
232
+ id: 'invalid-config-test',
233
+ configuration: { connections: [], sync_rules: settings },
234
+ storageEngine,
235
+ metricsEngine: METRICS_HELPER.metricsEngine,
236
+ rateLimiter: { waitUntilAllowed: async () => {}, reportError: () => {}, mayPing: () => false }
237
+ });
238
+ if (recoveryTiming !== 'after startup') {
239
+ await backend.restartReplication(original.replicationStreamId);
240
+ expect((await backend.getActiveSyncConfig())?.replicationStream.state).toBe(storage.SyncRuleState.ERRORED);
241
+ if (recoveryTiming === 'superseded recovery') {
242
+ // A newer operator deployment can replace recovery before the rejected startup.
243
+ await backend.updateSyncRules(
244
+ updateSyncRulesFromYaml(content + '\n# Pending deployment', {
245
+ storageVersion,
246
+ version_label: 'unrelated',
247
+ forceNewReplicationStream: true
248
+ })
249
+ );
250
+ } else if (recoveryTiming === 'missing recovery') {
251
+ // Leave A errored without pending recovery; startup must restore runnable work.
252
+ await backend.stopProcessingSyncConfigs();
253
+ }
254
+ }
255
+ const configure = vi.spyOn(backend, 'configureSyncRules');
256
+ await replicator.initializeConfig();
257
+ expect(configure).not.toHaveBeenCalled();
258
+ if (recoveryTiming === 'after startup') {
259
+ expect(await backend.getDeployingSyncConfig()).toBeNull();
260
+ }
261
+ const runnable = await backend.getReplicatingReplicationStreams();
262
+ expect(runnable).toHaveLength(1);
263
+ expect(await replicator.accepts(runnable[0])).toBe(true);
264
+ const assertRejectedDiagnostics = async () => {
265
+ const status = getInvalidLocalSyncConfigStatus(
266
+ await replicator.syncConfigEngine.getConfigured(),
267
+ true,
268
+ settings.version_label
269
+ );
270
+ expect(status?.content).toBe(INVALID_CONFIG);
271
+ expect(status?.errors.some((error) => error.level === 'fatal')).toBe(true);
272
+ };
273
+ await assertRejectedDiagnostics();
274
+
275
+ if (recoveryTiming === 'after startup') {
276
+ await backend.restartReplication(original.replicationStreamId);
277
+ }
278
+ // A worker holding invalid B must recognize this replacement as recovery of A.
279
+ const pending = await backend.getDeployingSyncConfig();
280
+ expect(pending?.content.sync_rules_content).toBe(content);
281
+ expect(pending?.content.version_label).toBe('active');
282
+ const replacement = (await backend.getReplicatingReplicationStreams()).find(
283
+ (stream) => stream.replicationStreamId !== original.replicationStreamId
284
+ )!;
285
+ expect(replacement).toBeDefined();
286
+ expect(await replicator.accepts(replacement)).toBe(true);
287
+ await assertRejectedDiagnostics();
288
+
289
+ // Activation replaces the active identity, but must leave the local rejection visible.
290
+ await activate(replacement);
291
+ expect((await backend.getActiveSyncConfig())?.content.syncConfigId).toBe(pending?.content.syncConfigId);
292
+ expect(await backend.getDeployingSyncConfig()).toBeNull();
293
+ // Release the old job's lease, then let the replicator acquire the cleanup lock and
294
+ // terminate the superseded stream through the real storage implementation.
295
+ await releaseTestStorageLease(backend, original.replicationStreamId);
296
+ const stopped = await backend.getStoppedReplicationStreams();
297
+ expect(stopped.map((stream) => stream.replicationStreamId)).toContain(original.replicationStreamId);
298
+ for (const stream of stopped) {
299
+ await replicator.cleanStopped(stream);
300
+ }
301
+ expect(await backend.getStoppedReplicationStreams()).toEqual([]);
302
+ expect((await backend.getActiveSyncConfig())?.content.sync_rules_content).toBe(content);
303
+ await assertRejectedDiagnostics();
304
+
305
+ // A deployment from another worker must not be mistaken for recovery of the active config.
306
+ const unrelated = await backend.updateSyncRules(
307
+ updateSyncRulesFromYaml(content, { version_label: 'another-deployment', forceNewReplicationStream: true })
308
+ );
309
+ expect(await replicator.accepts(unrelated)).toBe(false);
310
+ await assertRejectedDiagnostics();
311
+ }
312
+ );
313
+ });
314
+ }
@@ -3,6 +3,7 @@ export * from './register-compacting-tests.js';
3
3
  export * from './register-data-storage-checkpoint-tests.js';
4
4
  export * from './register-data-storage-data-tests.js';
5
5
  export * from './register-data-storage-parameter-tests.js';
6
+ export * from './register-invalid-sync-config-tests.js';
6
7
  export * from './register-migration-tests.js';
7
8
  export * from './register-parameter-compacting-tests.js';
8
9
  export * from './register-report-tests.js';