@fluidframework/test-utils 2.0.0-internal.7.2.1 → 2.0.0-internal.7.3.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 +4 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/testContainerRuntimeFactory.d.ts.map +1 -1
- package/dist/testContainerRuntimeFactory.js +17 -8
- package/dist/testContainerRuntimeFactory.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +29 -29
- package/src/packageVersion.ts +1 -1
- package/src/testContainerRuntimeFactory.ts +9 -6
package/CHANGELOG.md
CHANGED
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/test-utils";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.7.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.7.3.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/test-utils";
|
|
11
|
-
exports.pkgVersion = "2.0.0-internal.7.
|
|
11
|
+
exports.pkgVersion = "2.0.0-internal.7.3.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-internal.7.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-internal.7.3.0\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EACN,gBAAgB,EAChB,wBAAwB,EAExB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAA8B,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAG7E;;GAEG;AACH,eAAO,MAAM,iCAAiC,yBACvB,uBAAuB;eAI9B,MAAM,oBACM,sBAAsB,mBACxB,wBAAwB,oBAUvB,qBAAqB,EAAE;cAZlC,MAAM;0BACM,sBAAsB;wBACxB,wBAAwB;yBAUvB,qBAAqB,EAAE;sCAKL,gBAAgB,GAAG,QAAQ,IAAI,CAAC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@@ -44,14 +44,23 @@ const createTestContainerRuntimeFactory = (containerRuntimeCtor) => {
|
|
|
44
44
|
await runtime.getAliasedDataStoreEntryPoint("default");
|
|
45
45
|
}
|
|
46
46
|
async preInitialize(context, existing) {
|
|
47
|
-
const runtime = await containerRuntimeCtor.
|
|
48
|
-
|
|
49
|
-
[
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
const runtime = await containerRuntimeCtor.loadRuntime({
|
|
48
|
+
context,
|
|
49
|
+
registryEntries: [
|
|
50
|
+
["default", Promise.resolve(this.dataStoreFactory)],
|
|
51
|
+
[this.type, Promise.resolve(this.dataStoreFactory)],
|
|
52
|
+
],
|
|
53
|
+
// eslint-disable-next-line import/no-deprecated
|
|
54
|
+
requestHandler: (0, request_handler_1.buildRuntimeRequestHandler)(
|
|
55
|
+
// eslint-disable-next-line import/no-deprecated
|
|
56
|
+
(0, aqueduct_1.defaultRouteRequestHandler)("default"), ...this.requestHandlers),
|
|
57
|
+
provideEntryPoint: () => {
|
|
58
|
+
throw new Error("TODO: AB#4993");
|
|
59
|
+
},
|
|
60
|
+
runtimeOptions: this.runtimeOptions,
|
|
61
|
+
containerScope: context.scope,
|
|
62
|
+
existing,
|
|
63
|
+
});
|
|
55
64
|
return runtime;
|
|
56
65
|
}
|
|
57
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testContainerRuntimeFactory.js","sourceRoot":"","sources":["../src/testContainerRuntimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,gDAAgD;AAChD,uDAAsE;AAEtE,yEAI2C;AAE3C,gDAAgD;AAChD,qEAAoG;AAEpG,iEAAqE;AAErE;;GAEG;AACI,MAAM,iCAAiC,GAAG,CAChD,oBAA6C,EAC5C,EAAE;IACH,OAAO,KAAM,SAAQ,oCAAoB;QACxC,YACQ,IAAY,EACZ,gBAAwC,EACxC,iBAA2C;YACjD,cAAc,EAAE;gBACf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AG,IAAI,CAAC,eAAe,CACvB;gBACD,iBAAiB,EAAE,GAAG,EAAE;oBACvB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;gBAClC,CAAC;gBACD,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,cAAc,EAAE,OAAO,CAAC,KAAK;gBAC7B,QAAQ;aACR,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC;QAChB,CAAC;KACD,CAAC;AACH,CAAC,CAAC;AAhEW,QAAA,iCAAiC,qCAgE5C;AAEF;;GAEG;AACU,QAAA,2BAA2B,GAAG,IAAA,yCAAiC,EAAC,oCAAgB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// eslint-disable-next-line import/no-deprecated\nimport { defaultRouteRequestHandler } from \"@fluidframework/aqueduct\";\nimport { IContainerContext, IRuntime } from \"@fluidframework/container-definitions\";\nimport {\n\tContainerRuntime,\n\tIContainerRuntimeOptions,\n\tDefaultSummaryConfiguration,\n} from \"@fluidframework/container-runtime\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\n// eslint-disable-next-line import/no-deprecated\nimport { buildRuntimeRequestHandler, RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport { IFluidDataStoreFactory } from \"@fluidframework/runtime-definitions\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\n\n/**\n * Create a container runtime factory class that allows you to set runtime options\n */\nexport const createTestContainerRuntimeFactory = (\n\tcontainerRuntimeCtor: typeof ContainerRuntime,\n) => {\n\treturn class extends RuntimeFactoryHelper {\n\t\tconstructor(\n\t\t\tpublic type: string,\n\t\t\tpublic dataStoreFactory: IFluidDataStoreFactory,\n\t\t\tpublic runtimeOptions: IContainerRuntimeOptions = {\n\t\t\t\tsummaryOptions: {\n\t\t\t\t\tsummaryConfigOverrides: {\n\t\t\t\t\t\t...DefaultSummaryConfiguration,\n\t\t\t\t\t\t...{\n\t\t\t\t\t\t\tinitialSummarizerDelayMs: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tpublic requestHandlers: RuntimeRequestHandler[] = [],\n\t\t) {\n\t\t\tsuper();\n\t\t}\n\n\t\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\t\tconst rootContext = runtime.createDetachedRootDataStore([this.type], \"default\");\n\t\t\tconst rootRuntime = await this.dataStoreFactory.instantiateDataStore(\n\t\t\t\trootContext,\n\t\t\t\t/* existing */ false,\n\t\t\t);\n\t\t\tawait rootContext.attachRuntime(this.dataStoreFactory, rootRuntime);\n\t\t}\n\n\t\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\t\t// Validate we can load root data stores.\n\t\t\t// We should be able to load any data store that was created in initializeFirstTime!\n\t\t\tawait runtime.getAliasedDataStoreEntryPoint(\"default\");\n\t\t}\n\n\t\tasync preInitialize(\n\t\t\tcontext: IContainerContext,\n\t\t\texisting: boolean,\n\t\t): Promise<IRuntime & IContainerRuntime> {\n\t\t\tconst runtime: ContainerRuntime = await containerRuntimeCtor.loadRuntime({\n\t\t\t\tcontext,\n\t\t\t\tregistryEntries: [\n\t\t\t\t\t[\"default\", Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t\t[this.type, Promise.resolve(this.dataStoreFactory)],\n\t\t\t\t],\n\t\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\t\trequestHandler: buildRuntimeRequestHandler(\n\t\t\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\t\t\tdefaultRouteRequestHandler(\"default\"),\n\t\t\t\t\t...this.requestHandlers,\n\t\t\t\t),\n\t\t\t\tprovideEntryPoint: () => {\n\t\t\t\t\tthrow new Error(\"TODO: AB#4993\");\n\t\t\t\t},\n\t\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\t\tcontainerScope: context.scope,\n\t\t\t\texisting,\n\t\t\t});\n\n\t\t\treturn runtime;\n\t\t}\n\t};\n};\n\n/**\n * A container runtime factory that allows you to set runtime options\n */\nexport const TestContainerRuntimeFactory = createTestContainerRuntimeFactory(ContainerRuntime);\n"]}
|
package/dist/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/test-utils",
|
|
3
|
-
"version": "2.0.0-internal.7.
|
|
3
|
+
"version": "2.0.0-internal.7.3.0",
|
|
4
4
|
"description": "Utilities for Fluid tests",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -34,39 +34,39 @@
|
|
|
34
34
|
"temp-directory": "nyc/.nyc_output"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@fluidframework/aqueduct": ">=2.0.0-internal.7.
|
|
38
|
-
"@fluidframework/container-definitions": ">=2.0.0-internal.7.
|
|
39
|
-
"@fluidframework/container-loader": ">=2.0.0-internal.7.
|
|
40
|
-
"@fluidframework/container-runtime": ">=2.0.0-internal.7.
|
|
41
|
-
"@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.
|
|
42
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.
|
|
43
|
-
"@fluidframework/core-utils": ">=2.0.0-internal.7.
|
|
44
|
-
"@fluidframework/datastore": ">=2.0.0-internal.7.
|
|
45
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-internal.7.
|
|
46
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.7.
|
|
47
|
-
"@fluidframework/driver-utils": ">=2.0.0-internal.7.
|
|
48
|
-
"@fluidframework/local-driver": ">=2.0.0-internal.7.
|
|
49
|
-
"@fluidframework/map": ">=2.0.0-internal.7.
|
|
37
|
+
"@fluidframework/aqueduct": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
38
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
39
|
+
"@fluidframework/container-loader": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
40
|
+
"@fluidframework/container-runtime": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
41
|
+
"@fluidframework/container-runtime-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
42
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
43
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
44
|
+
"@fluidframework/datastore": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
45
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
46
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
47
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
48
|
+
"@fluidframework/local-driver": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
49
|
+
"@fluidframework/map": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
50
50
|
"@fluidframework/protocol-definitions": "^3.0.0",
|
|
51
|
-
"@fluidframework/request-handler": ">=2.0.0-internal.7.
|
|
52
|
-
"@fluidframework/routerlicious-driver": ">=2.0.0-internal.7.
|
|
53
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.
|
|
54
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.
|
|
55
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.7.
|
|
56
|
-
"@fluidframework/test-driver-definitions": ">=2.0.0-internal.7.
|
|
57
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.
|
|
51
|
+
"@fluidframework/request-handler": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
52
|
+
"@fluidframework/routerlicious-driver": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
53
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
54
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
55
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
56
|
+
"@fluidframework/test-driver-definitions": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
57
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
58
58
|
"best-random": "^1.0.0",
|
|
59
59
|
"debug": "^4.3.4",
|
|
60
60
|
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@fluid-tools/build-cli": "^0.
|
|
63
|
+
"@fluid-tools/build-cli": "^0.28.0",
|
|
64
64
|
"@fluidframework/build-common": "^2.0.3",
|
|
65
|
-
"@fluidframework/build-tools": "^0.
|
|
66
|
-
"@fluidframework/eslint-config-fluid": "^3.
|
|
67
|
-
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.
|
|
68
|
-
"@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.0.0-internal.7.
|
|
69
|
-
"@microsoft/api-extractor": "^7.
|
|
65
|
+
"@fluidframework/build-tools": "^0.28.0",
|
|
66
|
+
"@fluidframework/eslint-config-fluid": "^3.1.0",
|
|
67
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.3.0 <2.0.0-internal.7.4.0",
|
|
68
|
+
"@fluidframework/test-utils-previous": "npm:@fluidframework/test-utils@2.0.0-internal.7.2.0",
|
|
69
|
+
"@microsoft/api-extractor": "^7.38.3",
|
|
70
70
|
"@types/debug": "^4.1.5",
|
|
71
71
|
"@types/diff": "^3.5.1",
|
|
72
72
|
"@types/mocha": "^9.1.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"build:genver": "gen-version",
|
|
96
96
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
97
97
|
"ci:build:docs": "api-extractor run",
|
|
98
|
-
"clean": "rimraf --glob dist lib \"
|
|
98
|
+
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
99
99
|
"eslint": "eslint --format stylish src",
|
|
100
100
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
101
101
|
"format": "npm run prettier:fix",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"prettier": "prettier --check . --ignore-path ../../../.prettierignore",
|
|
105
105
|
"prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
|
|
106
106
|
"test": "npm run test:mocha",
|
|
107
|
-
"test:mocha": "mocha --recursive dist/test/*.spec.js --exit --project src/test/tsconfig.json -r node_modules/@fluidframework/mocha-test-setup",
|
|
107
|
+
"test:mocha": "mocha --recursive \"dist/test/*.spec.js\" --exit --project src/test/tsconfig.json -r node_modules/@fluidframework/mocha-test-setup",
|
|
108
108
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
109
109
|
"tsc": "tsc",
|
|
110
110
|
"typetests:gen": "fluid-type-test-generator",
|
package/src/packageVersion.ts
CHANGED
|
@@ -61,22 +61,25 @@ export const createTestContainerRuntimeFactory = (
|
|
|
61
61
|
context: IContainerContext,
|
|
62
62
|
existing: boolean,
|
|
63
63
|
): Promise<IRuntime & IContainerRuntime> {
|
|
64
|
-
const runtime: ContainerRuntime = await containerRuntimeCtor.
|
|
64
|
+
const runtime: ContainerRuntime = await containerRuntimeCtor.loadRuntime({
|
|
65
65
|
context,
|
|
66
|
-
[
|
|
66
|
+
registryEntries: [
|
|
67
67
|
["default", Promise.resolve(this.dataStoreFactory)],
|
|
68
68
|
[this.type, Promise.resolve(this.dataStoreFactory)],
|
|
69
69
|
],
|
|
70
70
|
// eslint-disable-next-line import/no-deprecated
|
|
71
|
-
buildRuntimeRequestHandler(
|
|
71
|
+
requestHandler: buildRuntimeRequestHandler(
|
|
72
72
|
// eslint-disable-next-line import/no-deprecated
|
|
73
73
|
defaultRouteRequestHandler("default"),
|
|
74
74
|
...this.requestHandlers,
|
|
75
75
|
),
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
provideEntryPoint: () => {
|
|
77
|
+
throw new Error("TODO: AB#4993");
|
|
78
|
+
},
|
|
79
|
+
runtimeOptions: this.runtimeOptions,
|
|
80
|
+
containerScope: context.scope,
|
|
78
81
|
existing,
|
|
79
|
-
);
|
|
82
|
+
});
|
|
80
83
|
|
|
81
84
|
return runtime;
|
|
82
85
|
}
|