@itwin/presentation-testing 5.0.14 → 5.0.16
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 +14 -0
- package/lib/cjs/presentation-testing/IModelUtilities.d.ts +0 -1
- package/lib/cjs/presentation-testing/IModelUtilities.d.ts.map +1 -1
- package/lib/cjs/presentation-testing/IModelUtilities.js +1 -2
- package/lib/cjs/presentation-testing/IModelUtilities.js.map +1 -1
- package/lib/cjs/presentation-testing/InternalUtils.js +6 -6
- package/lib/cjs/presentation-testing/InternalUtils.js.map +1 -1
- package/lib/esm/presentation-testing/IModelUtilities.d.ts +0 -1
- package/lib/esm/presentation-testing/IModelUtilities.d.ts.map +1 -1
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log - @itwin/presentation-testing
|
|
2
2
|
|
|
3
|
+
## 5.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @itwin/presentation-components@5.4.2
|
|
9
|
+
|
|
10
|
+
## 5.0.15
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- @itwin/presentation-components@5.4.1
|
|
16
|
+
|
|
3
17
|
## 5.0.14
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module IModel
|
|
3
3
|
*/
|
|
4
|
-
/// <reference types="mocha" />
|
|
5
4
|
import { Id64String } from "@itwin/core-bentley";
|
|
6
5
|
import { BisCodeSpec, Code, CodeScopeProps, ElementAspectProps, ElementProps, ModelProps, RelationshipProps } from "@itwin/core-common";
|
|
7
6
|
import { IModelConnection } from "@itwin/core-frontend";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelUtilities.d.ts","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"IModelUtilities.d.ts","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACxI,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAI5E;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,WAAW,CAAC,MAAM,SAAS,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAClE,kDAAkD;IAClD,aAAa,CAAC,MAAM,SAAS,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IACtE,0DAA0D;IAC1D,YAAY,CAAC,MAAM,SAAS,kBAAkB,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3E;;;OAGG;IACH,kBAAkB,CAAC,MAAM,SAAS,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAChF;;;OAGG;IACH,UAAU,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7F;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACzH;;;;;GAKG;AAEH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAClI;;;;;;GAMG;AAEH,wBAAsB,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACxI;;;;;GAKG;AAEH,wBAAsB,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module IModel
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.buildTestIModel =
|
|
10
|
+
exports.buildTestIModel = buildTestIModel;
|
|
11
11
|
const core_backend_1 = require("@itwin/core-backend");
|
|
12
12
|
const core_frontend_1 = require("@itwin/core-frontend");
|
|
13
13
|
const IModelBuilderImpl_1 = require("./IModelBuilderImpl");
|
|
@@ -26,5 +26,4 @@ async function buildTestIModel(nameParam, cb) {
|
|
|
26
26
|
}
|
|
27
27
|
return core_frontend_1.SnapshotConnection.openFile(outputFile);
|
|
28
28
|
}
|
|
29
|
-
exports.buildTestIModel = buildTestIModel;
|
|
30
29
|
//# sourceMappingURL=IModelUtilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelUtilities.js","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG
|
|
1
|
+
{"version":3,"file":"IModelUtilities.js","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;AAqEH,0CAYC;AA/ED,sDAAiD;AAGjD,wDAA4E;AAC5E,2DAA4D;AAC5D,mDAAoF;AA8D7E,KAAK,UAAU,eAAe,CAAC,SAAiC,EAAE,EAAwD;IAC/H,MAAM,IAAI,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,wCAAwB,EAAC,SAAS,CAAC,IAAK,CAAC,SAAS,EAAE,CAAC,CAAC;IAC/G,MAAM,UAAU,GAAG,IAAA,uCAAuB,EAAC,IAAI,CAAC,CAAC;IACjD,MAAM,EAAE,GAAG,yBAAU,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,IAAI,yCAAqB,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;IACpB,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;QACtC,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;IACD,OAAO,kCAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AACjD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module IModel\n */\n\nimport { SnapshotDb } from \"@itwin/core-backend\";\nimport { Id64String } from \"@itwin/core-bentley\";\nimport { BisCodeSpec, Code, CodeScopeProps, ElementAspectProps, ElementProps, ModelProps, RelationshipProps } from \"@itwin/core-common\";\nimport { IModelConnection, SnapshotConnection } from \"@itwin/core-frontend\";\nimport { TestIModelBuilderImpl } from \"./IModelBuilderImpl\";\nimport { createFileNameFromString, setupOutputFileLocation } from \"./InternalUtils\";\n\n/**\n * Interface for IModel builder pattern. Used for building IModels to test rulesets.\n * @beta\n */\nexport interface TestIModelBuilder {\n /** Insert a model into the builder's iModel */\n insertModel<TProps extends ModelProps>(props: TProps): Id64String;\n /** Insert an element into the builder's iModel */\n insertElement<TProps extends ElementProps>(props: TProps): Id64String;\n /** Insert an element aspect into the specified element */\n insertAspect<TProps extends ElementAspectProps>(props: TProps): Id64String;\n /**\n * Insert a relationship between two instances. The relationship is expected to be a subclass\n * of `BisCore:ElementRefersToElements` or `BisCore:ElementDrivesElement`.\n */\n insertRelationship<TProps extends RelationshipProps>(props: TProps): Id64String;\n /**\n * Create code for specified element.\n * Code value has to be unique within its scope (see [Codes documentation page]($docs/bis/guide/fundamentals/codes.md)).\n */\n createCode(scopeModelId: CodeScopeProps, codeSpecName: BisCodeSpec, codeValue: string): Code;\n /**\n * Import an ECSchema in a form of XML string into the builder's iModel.\n */\n importSchema(schemaXml: string): Promise<void>;\n}\n\n/**\n * Function that creates an iModel and returns a connection to it.\n * @param name Name of test IModel\n * @param cb Callback function that receives an [[TestIModelBuilder]] to fill the iModel with data\n * @beta\n * @deprecated in 4.x. Use an overload with `cb` returning a promise.\n */\nexport async function buildTestIModel(name: string, cb: (builder: TestIModelBuilder) => void): Promise<IModelConnection>;\n/**\n * Function that creates an iModel and returns a connection to it.\n * @param name Name of test IModel\n * @param cb Callback function that receives an [[TestIModelBuilder]] to fill the iModel with data\n * @beta\n */\n// eslint-disable-next-line @typescript-eslint/unified-signatures\nexport async function buildTestIModel(name: string, cb: (builder: TestIModelBuilder) => Promise<void>): Promise<IModelConnection>;\n/**\n * Function that creates an iModel and returns a connection to it.\n * @param mochaContext Mocha context to generate iModel name from\n * @param cb Callback function that receives an [[TestIModelBuilder]] to fill the iModel with data\n * @beta\n * @deprecated in 4.x. Use an overload with `cb` returning a promise.\n */\n// eslint-disable-next-line @typescript-eslint/unified-signatures\nexport async function buildTestIModel(mochaContext: Mocha.Context, cb: (builder: TestIModelBuilder) => void): Promise<IModelConnection>;\n/**\n * Function that creates an iModel and returns a connection to it.\n * @param mochaContext Mocha context to generate iModel name from\n * @param cb Callback function that receives an [[TestIModelBuilder]] to fill the iModel with data\n * @beta\n */\n// eslint-disable-next-line @typescript-eslint/unified-signatures\nexport async function buildTestIModel(mochaContext: Mocha.Context, cb: (builder: TestIModelBuilder) => Promise<void>): Promise<IModelConnection>;\nexport async function buildTestIModel(nameParam: string | Mocha.Context, cb: (builder: TestIModelBuilder) => void | Promise<void>): Promise<IModelConnection> {\n const name = typeof nameParam === \"string\" ? nameParam : createFileNameFromString(nameParam.test!.fullTitle());\n const outputFile = setupOutputFileLocation(name);\n const db = SnapshotDb.createEmpty(outputFile, { rootSubject: { name } });\n const builder = new TestIModelBuilderImpl(db);\n try {\n await cb(builder);\n } finally {\n db.saveChanges(\"Created test IModel\");\n db.close();\n }\n return SnapshotConnection.openFile(outputFile);\n}\n"]}
|
|
@@ -7,7 +7,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.FILE_PATH_RESERVED_CHARACTERS = void 0;
|
|
11
|
+
exports.getTestOutputDir = getTestOutputDir;
|
|
12
|
+
exports.setTestOutputDir = setTestOutputDir;
|
|
13
|
+
exports.setupOutputFileLocation = setupOutputFileLocation;
|
|
14
|
+
exports.createFileNameFromString = createFileNameFromString;
|
|
15
|
+
exports.limitFilePathLength = limitFilePathLength;
|
|
11
16
|
const os_1 = require("os");
|
|
12
17
|
const path_1 = __importDefault(require("path"));
|
|
13
18
|
const sanitize_filename_1 = __importDefault(require("sanitize-filename"));
|
|
@@ -18,12 +23,10 @@ let testOutputDir;
|
|
|
18
23
|
function getTestOutputDir() {
|
|
19
24
|
return testOutputDir ?? defaultTestOutputDir;
|
|
20
25
|
}
|
|
21
|
-
exports.getTestOutputDir = getTestOutputDir;
|
|
22
26
|
/** @internal */
|
|
23
27
|
function setTestOutputDir(directoryPath) {
|
|
24
28
|
testOutputDir = directoryPath;
|
|
25
29
|
}
|
|
26
|
-
exports.setTestOutputDir = setTestOutputDir;
|
|
27
30
|
/**
|
|
28
31
|
* Prepare for an output file by:
|
|
29
32
|
* - Resolving the output file name under the known test output directory
|
|
@@ -39,12 +42,10 @@ function setupOutputFileLocation(fileName) {
|
|
|
39
42
|
core_backend_1.IModelJsFs.existsSync(outputFilePath) && core_backend_1.IModelJsFs.unlinkSync(outputFilePath);
|
|
40
43
|
return outputFilePath;
|
|
41
44
|
}
|
|
42
|
-
exports.setupOutputFileLocation = setupOutputFileLocation;
|
|
43
45
|
/** @internal */
|
|
44
46
|
function createFileNameFromString(str) {
|
|
45
47
|
return (0, sanitize_filename_1.default)(str.replace(/[ ]+/g, "-").replaceAll("`", "").replaceAll("'", "")).toLocaleLowerCase();
|
|
46
48
|
}
|
|
47
|
-
exports.createFileNameFromString = createFileNameFromString;
|
|
48
49
|
/**
|
|
49
50
|
* `itwinjs-core` creates some accompanying files for each iModels and their names are formed by appending
|
|
50
51
|
* a suffix to iModel file name. This constant should account for the maximum suffix length.
|
|
@@ -67,5 +68,4 @@ function limitFilePathLength(filePath) {
|
|
|
67
68
|
const shortenedName = `${name.slice(0, Math.ceil(pieceLength))}...${name.slice(Math.ceil(name.length - pieceLength))}`;
|
|
68
69
|
return path_1.default.join(dir, `${shortenedName}${ext}`);
|
|
69
70
|
}
|
|
70
|
-
exports.limitFilePathLength = limitFilePathLength;
|
|
71
71
|
//# sourceMappingURL=InternalUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalUtils.js","sourceRoot":"","sources":["../../../src/presentation-testing/InternalUtils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;
|
|
1
|
+
{"version":3,"file":"InternalUtils.js","sourceRoot":"","sources":["../../../src/presentation-testing/InternalUtils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;;;;AAYhG,4CAEC;AAGD,4CAEC;AAUD,0DAOC;AAGD,4DAEC;AAUD,kDAiBC;AAlED,2BAA4B;AAC5B,gDAAwB;AACxB,0EAAyC;AACzC,sDAAiD;AAGjD,MAAM,oBAAoB,GAAG,IAAA,WAAM,GAAE,CAAC;AACtC,IAAI,aAAiC,CAAC;AAEtC,gBAAgB;AAChB,SAAgB,gBAAgB;IAC9B,OAAO,aAAa,IAAI,oBAAoB,CAAC;AAC/C,CAAC;AAED,gBAAgB;AAChB,SAAgB,gBAAgB,CAAC,aAAiC;IAChE,aAAa,GAAG,aAAa,CAAC;AAChC,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,uBAAuB,CAAC,QAAgB;IACtD,MAAM,mBAAmB,GAAG,gBAAgB,EAAE,CAAC;IAC/C,CAAC,yBAAU,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,yBAAU,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAEzF,MAAM,cAAc,GAAG,mBAAmB,CAAC,cAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,QAAQ,MAAM,CAAC,CAAC,CAAC;IAC9F,yBAAU,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,yBAAU,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAC/E,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,gBAAgB;AAChB,SAAgB,wBAAwB,CAAC,GAAW;IAClD,OAAO,IAAA,2BAAQ,EAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACzG,CAAC;AAED;;;;GAIG;AACU,QAAA,6BAA6B,GAAG,EAAE,CAAC;AAEhD,gBAAgB;AAChB,SAAgB,mBAAmB,CAAC,QAAgB;IAClD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,cAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAE5B,IAAI,qBAAqB,GAAG,GAAG,GAAG,qCAA6B,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;IAChG,IAAI,IAAI,CAAC,MAAM,IAAI,qBAAqB,EAAE,CAAC;QACzC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,qBAAqB,IAAI,iBAAiB,CAAC;IAC3C,IAAI,qBAAqB,IAAI,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,cAAc,QAAQ,gBAAgB,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,WAAW,GAAG,qBAAqB,GAAG,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC;IACvH,OAAO,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,aAAa,GAAG,GAAG,EAAE,CAAC,CAAC;AAClD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport { tmpdir } from \"os\";\nimport path from \"path\";\nimport sanitize from \"sanitize-filename\";\nimport { IModelJsFs } from \"@itwin/core-backend\";\nimport { LocalFileName } from \"@itwin/core-common\";\n\nconst defaultTestOutputDir = tmpdir();\nlet testOutputDir: string | undefined;\n\n/** @internal */\nexport function getTestOutputDir() {\n return testOutputDir ?? defaultTestOutputDir;\n}\n\n/** @internal */\nexport function setTestOutputDir(directoryPath: string | undefined) {\n testOutputDir = directoryPath;\n}\n\n/**\n * Prepare for an output file by:\n * - Resolving the output file name under the known test output directory\n * - Making directories as necessary\n * - Removing a previous copy of the output file\n * @param fileName Name of output file. The actual file name may get modified to fit within the file system limits.\n * @internal\n */\nexport function setupOutputFileLocation(fileName: string): LocalFileName {\n const outputDirectoryPath = getTestOutputDir();\n !IModelJsFs.existsSync(outputDirectoryPath) && IModelJsFs.mkdirSync(outputDirectoryPath);\n\n const outputFilePath = limitFilePathLength(path.join(outputDirectoryPath, `${fileName}.bim`));\n IModelJsFs.existsSync(outputFilePath) && IModelJsFs.unlinkSync(outputFilePath);\n return outputFilePath;\n}\n\n/** @internal */\nexport function createFileNameFromString(str: string) {\n return sanitize(str.replace(/[ ]+/g, \"-\").replaceAll(\"`\", \"\").replaceAll(\"'\", \"\")).toLocaleLowerCase();\n}\n\n/**\n * `itwinjs-core` creates some accompanying files for each iModels and their names are formed by appending\n * a suffix to iModel file name. This constant should account for the maximum suffix length.\n * @internal\n */\nexport const FILE_PATH_RESERVED_CHARACTERS = 13;\n\n/** @internal */\nexport function limitFilePathLength(filePath: string) {\n const { dir, name, ext } = path.parse(filePath);\n const THREE_DOTS_LENGTH = 3;\n\n let allowedFileNameLength = 260 - FILE_PATH_RESERVED_CHARACTERS - (dir.length + 1) - ext.length;\n if (name.length <= allowedFileNameLength) {\n return filePath;\n }\n\n allowedFileNameLength -= THREE_DOTS_LENGTH;\n if (allowedFileNameLength <= 0) {\n throw new Error(`File path \"${filePath}\" is too long.`);\n }\n\n const pieceLength = allowedFileNameLength / 2;\n const shortenedName = `${name.slice(0, Math.ceil(pieceLength))}...${name.slice(Math.ceil(name.length - pieceLength))}`;\n return path.join(dir, `${shortenedName}${ext}`);\n}\n"]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module IModel
|
|
3
3
|
*/
|
|
4
|
-
/// <reference types="mocha" />
|
|
5
4
|
import { Id64String } from "@itwin/core-bentley";
|
|
6
5
|
import { BisCodeSpec, Code, CodeScopeProps, ElementAspectProps, ElementProps, ModelProps, RelationshipProps } from "@itwin/core-common";
|
|
7
6
|
import { IModelConnection } from "@itwin/core-frontend";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IModelUtilities.d.ts","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"IModelUtilities.d.ts","sourceRoot":"","sources":["../../../src/presentation-testing/IModelUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACxI,OAAO,EAAE,gBAAgB,EAAsB,MAAM,sBAAsB,CAAC;AAI5E;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,WAAW,CAAC,MAAM,SAAS,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAClE,kDAAkD;IAClD,aAAa,CAAC,MAAM,SAAS,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IACtE,0DAA0D;IAC1D,YAAY,CAAC,MAAM,SAAS,kBAAkB,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3E;;;OAGG;IACH,kBAAkB,CAAC,MAAM,SAAS,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAChF;;;OAGG;IACH,UAAU,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7F;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACzH;;;;;GAKG;AAEH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAClI;;;;;;GAMG;AAEH,wBAAsB,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACxI;;;;;GAKG;AAEH,wBAAsB,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/presentation-testing",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.16",
|
|
4
4
|
"description": "Testing utilities for iTwin.js Presentation library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"module": "lib/esm/presentation-testing.js",
|
|
23
23
|
"types": "lib/cjs/presentation-testing.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"rimraf": "^
|
|
25
|
+
"rimraf": "^6.0.1",
|
|
26
26
|
"sanitize-filename": "^1.6.3",
|
|
27
|
-
"@itwin/presentation-components": "^5.4.
|
|
27
|
+
"@itwin/presentation-components": "^5.4.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@itwin/appui-abstract": "^4.1.0",
|
|
@@ -38,33 +38,33 @@
|
|
|
38
38
|
"@itwin/presentation-frontend": "^4.1.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@itwin/appui-abstract": "^4.
|
|
42
|
-
"@itwin/build-tools": "^4.
|
|
43
|
-
"@itwin/components-react": "^4.
|
|
44
|
-
"@itwin/core-backend": "^4.
|
|
45
|
-
"@itwin/core-bentley": "^4.
|
|
46
|
-
"@itwin/core-common": "^4.
|
|
47
|
-
"@itwin/core-frontend": "^4.
|
|
48
|
-
"@itwin/core-geometry": "^4.
|
|
49
|
-
"@itwin/core-orbitgt": "^4.
|
|
50
|
-
"@itwin/core-quantity": "^4.
|
|
51
|
-
"@itwin/core-react": "^4.
|
|
52
|
-
"@itwin/ecschema-metadata": "^4.
|
|
53
|
-
"@itwin/eslint-plugin": "^4.
|
|
54
|
-
"@itwin/presentation-backend": "^4.
|
|
55
|
-
"@itwin/presentation-common": "^4.
|
|
56
|
-
"@itwin/presentation-frontend": "^4.
|
|
57
|
-
"@itwin/webgl-compatibility": "^4.
|
|
41
|
+
"@itwin/appui-abstract": "^4.8.0",
|
|
42
|
+
"@itwin/build-tools": "^4.8.0",
|
|
43
|
+
"@itwin/components-react": "^4.16.0",
|
|
44
|
+
"@itwin/core-backend": "^4.8.0",
|
|
45
|
+
"@itwin/core-bentley": "^4.8.0",
|
|
46
|
+
"@itwin/core-common": "^4.8.0",
|
|
47
|
+
"@itwin/core-frontend": "^4.8.0",
|
|
48
|
+
"@itwin/core-geometry": "^4.8.0",
|
|
49
|
+
"@itwin/core-orbitgt": "^4.8.0",
|
|
50
|
+
"@itwin/core-quantity": "^4.8.0",
|
|
51
|
+
"@itwin/core-react": "^4.16.0",
|
|
52
|
+
"@itwin/ecschema-metadata": "^4.8.0",
|
|
53
|
+
"@itwin/eslint-plugin": "^4.1.1",
|
|
54
|
+
"@itwin/presentation-backend": "^4.8.0",
|
|
55
|
+
"@itwin/presentation-common": "^4.8.0",
|
|
56
|
+
"@itwin/presentation-frontend": "^4.8.0",
|
|
57
|
+
"@itwin/webgl-compatibility": "^4.8.0",
|
|
58
58
|
"@opentelemetry/api": "^1.8.0",
|
|
59
|
-
"@types/chai": "^4.3.
|
|
59
|
+
"@types/chai": "^4.3.16",
|
|
60
60
|
"@types/chai-as-promised": "^7.1.8",
|
|
61
61
|
"@types/chai-jest-snapshot": "^1.3.8",
|
|
62
|
-
"@types/mocha": "^10.0.
|
|
62
|
+
"@types/mocha": "^10.0.7",
|
|
63
63
|
"@types/node": "^20.12.12",
|
|
64
64
|
"@types/sinon": "^17.0.3",
|
|
65
65
|
"@types/sinon-chai": "^3.2.12",
|
|
66
66
|
"chai": "^4.4.1",
|
|
67
|
-
"chai-as-promised": "^7.1.
|
|
67
|
+
"chai-as-promised": "^7.1.2",
|
|
68
68
|
"chai-jest-snapshot": "^2.0.0",
|
|
69
69
|
"cpx2": "^7.0.1",
|
|
70
70
|
"cross-env": "^7.0.3",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
"global-jsdom": "^24.0.0",
|
|
73
73
|
"ignore-styles": "^5.0.1",
|
|
74
74
|
"inversify": "^6.0.2",
|
|
75
|
-
"jsdom": "^24.
|
|
76
|
-
"mocha": "^10.
|
|
77
|
-
"nyc": "^
|
|
78
|
-
"react": "^18.
|
|
79
|
-
"react-dom": "^18.
|
|
75
|
+
"jsdom": "^24.1.0",
|
|
76
|
+
"mocha": "^10.6.0",
|
|
77
|
+
"nyc": "^17.0.0",
|
|
78
|
+
"react": "^18.3.1",
|
|
79
|
+
"react-dom": "^18.3.1",
|
|
80
80
|
"reflect-metadata": "^0.1.14",
|
|
81
|
-
"sinon": "^
|
|
81
|
+
"sinon": "^18.0.0",
|
|
82
82
|
"sinon-chai": "^3.7.0",
|
|
83
|
-
"typescript": "~5.
|
|
83
|
+
"typescript": "~5.5.3",
|
|
84
84
|
"presentation-build-tools": "^0.0.0",
|
|
85
85
|
"presentation-test-utilities": "^0.0.0"
|
|
86
86
|
},
|