@powersync/service-core-tests 0.12.16 → 0.13.0
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.
- package/CHANGELOG.md +19 -0
- package/dist/test-utils/general-utils.js +6 -3
- package/dist/test-utils/general-utils.js.map +1 -1
- package/dist/tests/register-data-storage-parameter-tests.js +47 -54
- package/dist/tests/register-data-storage-parameter-tests.js.map +1 -1
- package/dist/tests/register-parameter-compacting-tests.js +3 -3
- package/dist/tests/register-parameter-compacting-tests.js.map +1 -1
- package/dist/tests/register-sync-tests.js +16 -64
- package/dist/tests/register-sync-tests.js.map +1 -1
- package/package.json +4 -5
- package/src/test-utils/general-utils.ts +6 -3
- package/src/tests/register-data-storage-parameter-tests.ts +56 -66
- package/src/tests/register-parameter-compacting-tests.ts +3 -3
- package/src/tests/register-sync-tests.ts +16 -64
- package/tsconfig.json +0 -12
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -82,10 +82,7 @@ export function registerSyncTests(factory: storage.TestStorageFactory) {
|
|
|
82
82
|
const stream = sync.streamResponse({
|
|
83
83
|
syncContext,
|
|
84
84
|
bucketStorage: bucketStorage,
|
|
85
|
-
syncRules:
|
|
86
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
87
|
-
version: bucketStorage.group_id
|
|
88
|
-
},
|
|
85
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
89
86
|
params: {
|
|
90
87
|
buckets: [],
|
|
91
88
|
include_checksum: true,
|
|
@@ -146,10 +143,7 @@ bucket_definitions:
|
|
|
146
143
|
const stream = sync.streamResponse({
|
|
147
144
|
syncContext,
|
|
148
145
|
bucketStorage,
|
|
149
|
-
syncRules:
|
|
150
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
151
|
-
version: bucketStorage.group_id
|
|
152
|
-
},
|
|
146
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
153
147
|
params: {
|
|
154
148
|
buckets: [],
|
|
155
149
|
include_checksum: true,
|
|
@@ -212,10 +206,7 @@ bucket_definitions:
|
|
|
212
206
|
const stream = sync.streamResponse({
|
|
213
207
|
syncContext,
|
|
214
208
|
bucketStorage,
|
|
215
|
-
syncRules:
|
|
216
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
217
|
-
version: bucketStorage.group_id
|
|
218
|
-
},
|
|
209
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
219
210
|
params: {
|
|
220
211
|
buckets: [],
|
|
221
212
|
include_checksum: true,
|
|
@@ -325,10 +316,7 @@ bucket_definitions:
|
|
|
325
316
|
const stream = sync.streamResponse({
|
|
326
317
|
syncContext,
|
|
327
318
|
bucketStorage,
|
|
328
|
-
syncRules:
|
|
329
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
330
|
-
version: bucketStorage.group_id
|
|
331
|
-
},
|
|
319
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
332
320
|
params: {
|
|
333
321
|
buckets: [],
|
|
334
322
|
include_checksum: true,
|
|
@@ -469,10 +457,7 @@ bucket_definitions:
|
|
|
469
457
|
const stream = sync.streamResponse({
|
|
470
458
|
syncContext,
|
|
471
459
|
bucketStorage,
|
|
472
|
-
syncRules:
|
|
473
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
474
|
-
version: bucketStorage.group_id
|
|
475
|
-
},
|
|
460
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
476
461
|
params: {
|
|
477
462
|
buckets: [],
|
|
478
463
|
include_checksum: true,
|
|
@@ -588,10 +573,7 @@ bucket_definitions:
|
|
|
588
573
|
const stream = sync.streamResponse({
|
|
589
574
|
syncContext,
|
|
590
575
|
bucketStorage,
|
|
591
|
-
syncRules:
|
|
592
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
593
|
-
version: bucketStorage.group_id
|
|
594
|
-
},
|
|
576
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
595
577
|
params: {
|
|
596
578
|
buckets: [],
|
|
597
579
|
include_checksum: true,
|
|
@@ -657,10 +639,7 @@ bucket_definitions:
|
|
|
657
639
|
const stream = sync.streamResponse({
|
|
658
640
|
syncContext,
|
|
659
641
|
bucketStorage,
|
|
660
|
-
syncRules:
|
|
661
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
662
|
-
version: bucketStorage.group_id
|
|
663
|
-
},
|
|
642
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
664
643
|
params: {
|
|
665
644
|
buckets: [],
|
|
666
645
|
include_checksum: true,
|
|
@@ -689,10 +668,7 @@ bucket_definitions:
|
|
|
689
668
|
const stream = sync.streamResponse({
|
|
690
669
|
syncContext,
|
|
691
670
|
bucketStorage,
|
|
692
|
-
syncRules:
|
|
693
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
694
|
-
version: bucketStorage.group_id
|
|
695
|
-
},
|
|
671
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
696
672
|
params: {
|
|
697
673
|
buckets: [],
|
|
698
674
|
include_checksum: true,
|
|
@@ -723,10 +699,7 @@ bucket_definitions:
|
|
|
723
699
|
const stream = sync.streamResponse({
|
|
724
700
|
syncContext,
|
|
725
701
|
bucketStorage,
|
|
726
|
-
syncRules:
|
|
727
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
728
|
-
version: bucketStorage.group_id
|
|
729
|
-
},
|
|
702
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
730
703
|
params: {
|
|
731
704
|
buckets: [],
|
|
732
705
|
include_checksum: true,
|
|
@@ -800,10 +773,7 @@ bucket_definitions:
|
|
|
800
773
|
const stream = sync.streamResponse({
|
|
801
774
|
syncContext,
|
|
802
775
|
bucketStorage,
|
|
803
|
-
syncRules:
|
|
804
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
805
|
-
version: bucketStorage.group_id
|
|
806
|
-
},
|
|
776
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
807
777
|
params: {
|
|
808
778
|
buckets: [],
|
|
809
779
|
include_checksum: true,
|
|
@@ -879,10 +849,7 @@ bucket_definitions:
|
|
|
879
849
|
const stream = sync.streamResponse({
|
|
880
850
|
syncContext,
|
|
881
851
|
bucketStorage,
|
|
882
|
-
syncRules:
|
|
883
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
884
|
-
version: bucketStorage.group_id
|
|
885
|
-
},
|
|
852
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
886
853
|
params: {
|
|
887
854
|
buckets: [],
|
|
888
855
|
include_checksum: true,
|
|
@@ -949,10 +916,7 @@ bucket_definitions:
|
|
|
949
916
|
const stream = sync.streamResponse({
|
|
950
917
|
syncContext,
|
|
951
918
|
bucketStorage,
|
|
952
|
-
syncRules:
|
|
953
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
954
|
-
version: bucketStorage.group_id
|
|
955
|
-
},
|
|
919
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
956
920
|
params: {
|
|
957
921
|
buckets: [],
|
|
958
922
|
include_checksum: true,
|
|
@@ -1020,10 +984,7 @@ bucket_definitions:
|
|
|
1020
984
|
const stream = sync.streamResponse({
|
|
1021
985
|
syncContext,
|
|
1022
986
|
bucketStorage,
|
|
1023
|
-
syncRules:
|
|
1024
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1025
|
-
version: bucketStorage.group_id
|
|
1026
|
-
},
|
|
987
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1027
988
|
params: {
|
|
1028
989
|
buckets: [],
|
|
1029
990
|
include_checksum: true,
|
|
@@ -1086,10 +1047,7 @@ bucket_definitions:
|
|
|
1086
1047
|
const stream = sync.streamResponse({
|
|
1087
1048
|
syncContext,
|
|
1088
1049
|
bucketStorage,
|
|
1089
|
-
syncRules:
|
|
1090
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1091
|
-
version: bucketStorage.group_id
|
|
1092
|
-
},
|
|
1050
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1093
1051
|
params: {
|
|
1094
1052
|
buckets: [],
|
|
1095
1053
|
include_checksum: true,
|
|
@@ -1217,10 +1175,7 @@ bucket_definitions:
|
|
|
1217
1175
|
const params: sync.SyncStreamParameters = {
|
|
1218
1176
|
syncContext,
|
|
1219
1177
|
bucketStorage,
|
|
1220
|
-
syncRules:
|
|
1221
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1222
|
-
version: bucketStorage.group_id
|
|
1223
|
-
},
|
|
1178
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1224
1179
|
params: {
|
|
1225
1180
|
buckets: [],
|
|
1226
1181
|
include_checksum: true,
|
|
@@ -1293,10 +1248,7 @@ config:
|
|
|
1293
1248
|
const stream = sync.streamResponse({
|
|
1294
1249
|
syncContext,
|
|
1295
1250
|
bucketStorage: bucketStorage,
|
|
1296
|
-
syncRules:
|
|
1297
|
-
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1298
|
-
version: bucketStorage.group_id
|
|
1299
|
-
},
|
|
1251
|
+
syncRules: bucketStorage.getParsedSyncRules(test_utils.PARSE_OPTIONS),
|
|
1300
1252
|
params: {
|
|
1301
1253
|
buckets: [],
|
|
1302
1254
|
include_checksum: true,
|
package/tsconfig.json
CHANGED
|
@@ -9,26 +9,14 @@
|
|
|
9
9
|
},
|
|
10
10
|
"include": ["src"],
|
|
11
11
|
"references": [
|
|
12
|
-
{
|
|
13
|
-
"path": "../types"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "../rsocket-router"
|
|
17
|
-
},
|
|
18
12
|
{
|
|
19
13
|
"path": "../jsonbig"
|
|
20
14
|
},
|
|
21
|
-
{
|
|
22
|
-
"path": "../jpgwire"
|
|
23
|
-
},
|
|
24
15
|
{
|
|
25
16
|
"path": "../sync-rules"
|
|
26
17
|
},
|
|
27
18
|
{
|
|
28
19
|
"path": "../service-core"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "../../libs/lib-services"
|
|
32
20
|
}
|
|
33
21
|
]
|
|
34
22
|
}
|