@hot-updater/test-utils 1.2.0-rc.5 → 1.2.0-rc.50
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/dist/index.d.mts +13 -5
- package/dist/index.mjs +1139 -30
- package/dist/node.cjs +11195 -19141
- package/dist/node.d.cts +1 -7
- package/dist/node.d.mts +1 -7
- package/dist/node.mjs +11196 -19141
- package/package.json +18 -13
package/dist/index.d.mts
CHANGED
|
@@ -65,9 +65,9 @@ declare const setupBundleMethodsTestSuite: (options: {
|
|
|
65
65
|
/**
|
|
66
66
|
* Core's operations through admin API protocol 2 that the bundle and catalog
|
|
67
67
|
* suites leave out: channels, deploy refusals, promotion, preflights, a
|
|
68
|
-
* bundle's patch children,
|
|
69
|
-
* what it wrote, except a native build, which the
|
|
70
|
-
* and channel are the test's own.
|
|
68
|
+
* bundle's patch children, the native build registry, and the iOS device
|
|
69
|
+
* registry. Each test deletes what it wrote, except a native build, which the
|
|
70
|
+
* registry keeps: its IDs and channel are the test's own.
|
|
71
71
|
*/
|
|
72
72
|
declare const setupCoreAdminTestSuite: (options: {
|
|
73
73
|
readonly getClient: () => HttpTestClient;
|
|
@@ -291,6 +291,14 @@ interface ReadBudgetSuiteOptions {
|
|
|
291
291
|
readonly cleanup?: () => Promise<void>;
|
|
292
292
|
/** SQL backends: the rows the database examined for the adapter's reads. */
|
|
293
293
|
readonly examined?: RowsExamined;
|
|
294
|
+
/**
|
|
295
|
+
* The rows each statement of the adapter's writes and prunes read, as D1
|
|
296
|
+
* bills them, since `reset`.
|
|
297
|
+
*/
|
|
298
|
+
readonly written?: {
|
|
299
|
+
reset(): void;
|
|
300
|
+
rows(): Promise<readonly number[]>;
|
|
301
|
+
};
|
|
294
302
|
/**
|
|
295
303
|
* Index reads return row copies without `_v`, as the key-value adapter's
|
|
296
304
|
* do, so a transaction reads the rows it guards again, whole.
|
|
@@ -321,8 +329,8 @@ interface AggregateBatchingSuiteOptions {
|
|
|
321
329
|
}
|
|
322
330
|
/**
|
|
323
331
|
* Aggregates declared `batched` on a key-value store: log rows the store
|
|
324
|
-
* writes with each transaction and a compaction merges once,
|
|
325
|
-
*
|
|
332
|
+
* writes with each transaction and a compaction merges once, read back
|
|
333
|
+
* exactly as transactional writes read.
|
|
326
334
|
*/
|
|
327
335
|
declare const setupAggregateBatchingTestSuite: ({ name, createAdapter, oversizedRows }: AggregateBatchingSuiteOptions) => void;
|
|
328
336
|
//#endregion
|