@fluidframework/test-utils 2.0.0-dev-rc.4.0.0.261659 → 2.0.0-dev-rc.5.0.0.265721

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-report/test-utils.api.md +6 -6
  3. package/dist/TestSummaryUtils.d.ts.map +1 -1
  4. package/dist/TestSummaryUtils.js +1 -4
  5. package/dist/TestSummaryUtils.js.map +1 -1
  6. package/dist/containerUtils.js.map +1 -1
  7. package/dist/interfaces.d.ts +1 -1
  8. package/dist/interfaces.d.ts.map +1 -1
  9. package/dist/interfaces.js.map +1 -1
  10. package/dist/loaderContainerTracker.d.ts.map +1 -1
  11. package/dist/loaderContainerTracker.js.map +1 -1
  12. package/dist/localCodeLoader.js.map +1 -1
  13. package/dist/packageVersion.d.ts +1 -1
  14. package/dist/packageVersion.js +1 -1
  15. package/dist/packageVersion.js.map +1 -1
  16. package/dist/retry.js.map +1 -1
  17. package/dist/testContainerRuntimeFactory.d.ts.map +1 -1
  18. package/dist/testContainerRuntimeFactory.js.map +1 -1
  19. package/dist/testContainerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  20. package/dist/testFluidObject.d.ts +1 -1
  21. package/dist/testFluidObject.d.ts.map +1 -1
  22. package/dist/testFluidObject.js.map +1 -1
  23. package/dist/testObjectProvider.d.ts +4 -4
  24. package/dist/testObjectProvider.d.ts.map +1 -1
  25. package/dist/testObjectProvider.js +5 -5
  26. package/dist/testObjectProvider.js.map +1 -1
  27. package/dist/timeoutUtils.js.map +1 -1
  28. package/lib/TestSummaryUtils.d.ts.map +1 -1
  29. package/lib/TestSummaryUtils.js +1 -4
  30. package/lib/TestSummaryUtils.js.map +1 -1
  31. package/lib/containerUtils.js.map +1 -1
  32. package/lib/interfaces.d.ts +1 -1
  33. package/lib/interfaces.d.ts.map +1 -1
  34. package/lib/interfaces.js.map +1 -1
  35. package/lib/loaderContainerTracker.d.ts.map +1 -1
  36. package/lib/loaderContainerTracker.js.map +1 -1
  37. package/lib/localCodeLoader.js.map +1 -1
  38. package/lib/packageVersion.d.ts +1 -1
  39. package/lib/packageVersion.js +1 -1
  40. package/lib/packageVersion.js.map +1 -1
  41. package/lib/retry.js.map +1 -1
  42. package/lib/testContainerRuntimeFactory.d.ts.map +1 -1
  43. package/lib/testContainerRuntimeFactory.js.map +1 -1
  44. package/lib/testContainerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  45. package/lib/testFluidObject.d.ts +1 -1
  46. package/lib/testFluidObject.d.ts.map +1 -1
  47. package/lib/testFluidObject.js.map +1 -1
  48. package/lib/testObjectProvider.d.ts +4 -4
  49. package/lib/testObjectProvider.d.ts.map +1 -1
  50. package/lib/testObjectProvider.js +5 -5
  51. package/lib/testObjectProvider.js.map +1 -1
  52. package/lib/timeoutUtils.js.map +1 -1
  53. package/lib/tsdoc-metadata.json +1 -1
  54. package/package.json +40 -27
  55. package/src/TestSummaryUtils.ts +0 -3
  56. package/src/interfaces.ts +1 -1
  57. package/src/loaderContainerTracker.ts +5 -2
  58. package/src/packageVersion.ts +1 -1
  59. package/src/testContainerRuntimeFactory.ts +2 -6
  60. package/src/testFluidObject.ts +5 -2
  61. package/src/testObjectProvider.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/test-utils",
3
- "version": "2.0.0-dev-rc.4.0.0.261659",
3
+ "version": "2.0.0-dev-rc.5.0.0.265721",
4
4
  "description": "Utilities for Fluid tests",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -67,26 +67,26 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluid-internal/test-driver-definitions": "2.0.0-dev-rc.4.0.0.261659",
71
- "@fluidframework/aqueduct": "2.0.0-dev-rc.4.0.0.261659",
72
- "@fluidframework/container-definitions": "2.0.0-dev-rc.4.0.0.261659",
73
- "@fluidframework/container-loader": "2.0.0-dev-rc.4.0.0.261659",
74
- "@fluidframework/container-runtime": "2.0.0-dev-rc.4.0.0.261659",
75
- "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.4.0.0.261659",
76
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.4.0.0.261659",
77
- "@fluidframework/core-utils": "2.0.0-dev-rc.4.0.0.261659",
78
- "@fluidframework/datastore": "2.0.0-dev-rc.4.0.0.261659",
79
- "@fluidframework/datastore-definitions": "2.0.0-dev-rc.4.0.0.261659",
80
- "@fluidframework/driver-definitions": "2.0.0-dev-rc.4.0.0.261659",
81
- "@fluidframework/driver-utils": "2.0.0-dev-rc.4.0.0.261659",
82
- "@fluidframework/local-driver": "2.0.0-dev-rc.4.0.0.261659",
83
- "@fluidframework/map": "2.0.0-dev-rc.4.0.0.261659",
70
+ "@fluid-internal/test-driver-definitions": "2.0.0-dev-rc.5.0.0.265721",
71
+ "@fluidframework/aqueduct": "2.0.0-dev-rc.5.0.0.265721",
72
+ "@fluidframework/container-definitions": "2.0.0-dev-rc.5.0.0.265721",
73
+ "@fluidframework/container-loader": "2.0.0-dev-rc.5.0.0.265721",
74
+ "@fluidframework/container-runtime": "2.0.0-dev-rc.5.0.0.265721",
75
+ "@fluidframework/container-runtime-definitions": "2.0.0-dev-rc.5.0.0.265721",
76
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.5.0.0.265721",
77
+ "@fluidframework/core-utils": "2.0.0-dev-rc.5.0.0.265721",
78
+ "@fluidframework/datastore": "2.0.0-dev-rc.5.0.0.265721",
79
+ "@fluidframework/datastore-definitions": "2.0.0-dev-rc.5.0.0.265721",
80
+ "@fluidframework/driver-definitions": "2.0.0-dev-rc.5.0.0.265721",
81
+ "@fluidframework/driver-utils": "2.0.0-dev-rc.5.0.0.265721",
82
+ "@fluidframework/local-driver": "2.0.0-dev-rc.5.0.0.265721",
83
+ "@fluidframework/map": "2.0.0-dev-rc.5.0.0.265721",
84
84
  "@fluidframework/protocol-definitions": "^3.2.0",
85
- "@fluidframework/request-handler": "2.0.0-dev-rc.4.0.0.261659",
86
- "@fluidframework/routerlicious-driver": "2.0.0-dev-rc.4.0.0.261659",
87
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.4.0.0.261659",
88
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.4.0.0.261659",
89
- "@fluidframework/telemetry-utils": "2.0.0-dev-rc.4.0.0.261659",
85
+ "@fluidframework/request-handler": "2.0.0-dev-rc.5.0.0.265721",
86
+ "@fluidframework/routerlicious-driver": "2.0.0-dev-rc.5.0.0.265721",
87
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.5.0.0.265721",
88
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.5.0.0.265721",
89
+ "@fluidframework/telemetry-utils": "2.0.0-dev-rc.5.0.0.265721",
90
90
  "best-random": "^1.0.0",
91
91
  "debug": "^4.3.4",
92
92
  "mocha": "^10.2.0",
@@ -95,13 +95,13 @@
95
95
  "devDependencies": {
96
96
  "@arethetypeswrong/cli": "^0.15.2",
97
97
  "@biomejs/biome": "^1.6.2",
98
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.4.0.0.261659",
99
- "@fluid-tools/build-cli": "0.38.0-259537",
98
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.5.0.0.265721",
99
+ "@fluid-tools/build-cli": "^0.39.0-264124",
100
100
  "@fluidframework/build-common": "^2.0.3",
101
- "@fluidframework/build-tools": "0.38.0-259537",
101
+ "@fluidframework/build-tools": "^0.39.0-264124",
102
102
  "@fluidframework/eslint-config-fluid": "^5.1.0",
103
- "@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.0.0-rc.3.0.0",
104
- "@microsoft/api-extractor": "^7.42.3",
103
+ "@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.0.0-rc.4.0.0",
104
+ "@microsoft/api-extractor": "^7.43.1",
105
105
  "@types/debug": "^4.1.5",
106
106
  "@types/diff": "^3.5.1",
107
107
  "@types/mocha": "^9.1.1",
@@ -117,10 +117,23 @@
117
117
  "moment": "^2.21.0",
118
118
  "prettier": "~3.0.3",
119
119
  "rimraf": "^4.4.0",
120
- "typescript": "~5.1.6"
120
+ "typescript": "~5.3.3"
121
121
  },
122
122
  "typeValidation": {
123
- "broken": {}
123
+ "broken": {
124
+ "InterfaceDeclaration_IProvideTestFluidObject": {
125
+ "forwardCompat": false,
126
+ "backCompat": false
127
+ },
128
+ "InterfaceDeclaration_ITestFluidObject": {
129
+ "forwardCompat": false,
130
+ "backCompat": false
131
+ },
132
+ "ClassDeclaration_TestFluidObject": {
133
+ "forwardCompat": false,
134
+ "backCompat": false
135
+ }
136
+ }
124
137
  },
125
138
  "scripts": {
126
139
  "api": "fluid-build . --task api",
@@ -189,9 +189,6 @@ export async function summarizeNow(
189
189
 
190
190
  const submitResult = await timeoutAwait(result.summarySubmitted);
191
191
  if (!submitResult.success) {
192
- if (typeof submitResult.error !== "string") {
193
- submitResult.error.data = submitResult.data;
194
- }
195
192
  throw submitResult.error;
196
193
  }
197
194
  assert(
package/src/interfaces.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { IFluidLoadable } from "@fluidframework/core-interfaces";
7
- import { IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
7
+ import { IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions/internal";
8
8
  import { ISharedMap } from "@fluidframework/map/internal";
9
9
  import {
10
10
  IFluidDataStoreChannel,
@@ -3,8 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { IDeltaQueue } from "@fluidframework/container-definitions";
7
- import { IContainer, IHostLoader } from "@fluidframework/container-definitions/internal";
6
+ import {
7
+ IDeltaQueue,
8
+ IContainer,
9
+ IHostLoader,
10
+ } from "@fluidframework/container-definitions/internal";
8
11
  import { ConnectionState } from "@fluidframework/container-loader";
9
12
  import {
10
13
  IContainerCreateProps,
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/test-utils";
9
- export const pkgVersion = "2.0.0-dev-rc.4.0.0.261659";
9
+ export const pkgVersion = "2.0.0-dev-rc.5.0.0.265721";
@@ -10,12 +10,8 @@ import {
10
10
  IContainerRuntimeOptions,
11
11
  } from "@fluidframework/container-runtime/internal";
12
12
  import { IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
13
- import {
14
- FluidObject,
15
- IFluidHandleContext,
16
- IRequest,
17
- IResponse,
18
- } from "@fluidframework/core-interfaces";
13
+ import { FluidObject, IRequest, IResponse } from "@fluidframework/core-interfaces";
14
+ import { IFluidHandleContext } from "@fluidframework/core-interfaces/internal";
19
15
  import { assert } from "@fluidframework/core-utils/internal";
20
16
  import {
21
17
  // eslint-disable-next-line import/no-deprecated
@@ -10,7 +10,10 @@ import {
10
10
  FluidObjectHandle,
11
11
  mixinRequestHandler,
12
12
  } from "@fluidframework/datastore/internal";
13
- import { IChannelFactory, IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions";
13
+ import {
14
+ IChannelFactory,
15
+ IFluidDataStoreRuntime,
16
+ } from "@fluidframework/datastore-definitions/internal";
14
17
  import { ISharedMap, SharedMap } from "@fluidframework/map/internal";
15
18
  import {
16
19
  IFluidDataStoreChannel,
@@ -72,7 +75,7 @@ export class TestFluidObject implements ITestFluidObject {
72
75
  for (const key of this.factoryEntriesMap.keys()) {
73
76
  if (key === id) {
74
77
  const handle = this.root.get<IFluidHandle>(id);
75
- return handle?.get() as unknown as T;
78
+ return handle?.get() as Promise<T>;
76
79
  }
77
80
  }
78
81
 
@@ -197,7 +197,7 @@ export interface ITestObjectProvider {
197
197
  /**
198
198
  * Make sure all the tracked containers are synchronized.
199
199
  */
200
- ensureSynchronized(timeoutDuration?: number): Promise<void>;
200
+ ensureSynchronized(...containers: IContainer[]): Promise<void>;
201
201
 
202
202
  /**
203
203
  * Reset the tracker, closing all containers and stop tracking them.
@@ -677,8 +677,8 @@ export class TestObjectProvider implements ITestObjectProvider {
677
677
  /**
678
678
  * {@inheritDoc ITestObjectProvider.ensureSynchronized}
679
679
  */
680
- public async ensureSynchronized(): Promise<void> {
681
- return this._loaderContainerTracker.ensureSynchronized();
680
+ public async ensureSynchronized(...containers: IContainer[]): Promise<void> {
681
+ return this._loaderContainerTracker.ensureSynchronized(...containers);
682
682
  }
683
683
 
684
684
  private async waitContainerToCatchUp(container: IContainer) {
@@ -1055,8 +1055,8 @@ export class TestObjectProviderWithVersionedLoad implements ITestObjectProvider
1055
1055
  /**
1056
1056
  * {@inheritDoc ITestObjectProvider.ensureSynchronized}
1057
1057
  */
1058
- public async ensureSynchronized(): Promise<void> {
1059
- return this._loaderContainerTracker.ensureSynchronized();
1058
+ public async ensureSynchronized(...containers: IContainer[]): Promise<void> {
1059
+ return this._loaderContainerTracker.ensureSynchronized(...containers);
1060
1060
  }
1061
1061
 
1062
1062
  private async waitContainerToCatchUp(container: IContainer) {