@itwin/rpcinterface-full-stack-tests 5.1.0-dev.9 → 5.2.0-dev.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/rpcinterface-full-stack-tests",
3
- "version": "5.1.0-dev.9",
3
+ "version": "5.2.0-dev.2",
4
4
  "description": "Test the full iTwin.js Core stack (frontend and backend) using standard RPC interfaces",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "@itwin/imodels-access-frontend": "^5.2.1",
24
24
  "@itwin/imodels-client-authoring": "^5.8.1",
25
25
  "@itwin/imodels-client-management": "^5.8.1",
26
- "@itwin/eslint-plugin": "5.0.0-dev.1",
26
+ "@itwin/eslint-plugin": "5.2.2-dev.2",
27
27
  "@itwin/oidc-signin-tool": "^4.4.1",
28
28
  "@itwin/service-authorization": "^1.0.0",
29
29
  "chai": "^4.3.10",
@@ -32,15 +32,15 @@
32
32
  "dotenv-expand": "^5.1.0",
33
33
  "mocha": "^11.1.0",
34
34
  "openid-client": "^4.7.4",
35
- "@itwin/build-tools": "5.1.0-dev.9",
36
- "@itwin/core-bentley": "5.1.0-dev.9",
37
- "@itwin/core-frontend": "5.1.0-dev.9",
38
- "@itwin/core-geometry": "5.1.0-dev.9",
39
- "@itwin/core-common": "5.1.0-dev.9",
40
- "@itwin/core-quantity": "5.1.0-dev.9",
41
- "@itwin/certa": "5.1.0-dev.9",
42
- "@itwin/presentation-common": "5.1.0-dev.9",
43
- "@itwin/presentation-frontend": "5.1.0-dev.9"
35
+ "@itwin/build-tools": "5.2.0-dev.2",
36
+ "@itwin/core-common": "5.2.0-dev.2",
37
+ "@itwin/core-bentley": "5.2.0-dev.2",
38
+ "@itwin/core-geometry": "5.2.0-dev.2",
39
+ "@itwin/core-quantity": "5.2.0-dev.2",
40
+ "@itwin/presentation-common": "5.2.0-dev.2",
41
+ "@itwin/core-frontend": "5.2.0-dev.2",
42
+ "@itwin/certa": "5.2.0-dev.2",
43
+ "@itwin/presentation-frontend": "5.2.0-dev.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@itwin/itwins-client": "^1.6.1",
@@ -52,7 +52,7 @@
52
52
  "browserify-zlib": "^0.2.0",
53
53
  "buffer": "^6.0.3",
54
54
  "cpx2": "^8.0.0",
55
- "eslint": "^9.13.0",
55
+ "eslint": "^9.31.0",
56
56
  "glob": "^10.3.12",
57
57
  "npm-run-all2": "^7.0.2",
58
58
  "null-loader": "^4.0.1",
@@ -63,9 +63,10 @@
63
63
  "typescript": "~5.6.2",
64
64
  "webpack": "^5.97.1",
65
65
  "webpack-cli": "^5.0.1",
66
- "@itwin/core-backend": "5.1.0-dev.9",
67
- "@itwin/express-server": "5.1.0-dev.9",
68
- "@itwin/presentation-backend": "5.1.0-dev.9",
66
+ "@itwin/core-backend": "5.2.0-dev.2",
67
+ "@itwin/ecschema-metadata": "5.2.0-dev.2",
68
+ "@itwin/presentation-backend": "5.2.0-dev.2",
69
+ "@itwin/express-server": "5.2.0-dev.2",
69
70
  "internal-tools": "3.0.0-dev.69"
70
71
  },
71
72
  "scripts": {
@@ -75,6 +76,7 @@
75
76
  "cover": "",
76
77
  "docs": "",
77
78
  "lint": "eslint \"./src/**/*.ts\" 1>&2",
79
+ "lint-deprecation": "eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \"./src/**/*.ts\"",
78
80
  "optest": "certa -r chrome --fgrep \"Operational: \"",
79
81
  "start:backend": "node ./lib/test/backend.js",
80
82
  "test": "",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CodeSpecs.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeSpecs.test.d.ts","sourceRoot":"","sources":["../../src/frontend/CodeSpecs.test.ts"],"names":[],"mappings":""}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const chai = require("chai");
8
- const core_common_1 = require("@itwin/core-common");
9
- const TestContext_1 = require("./setup/TestContext");
10
- const expect = chai.expect;
11
- describe("Get Code Specs", () => {
12
- let testContext;
13
- before(async function () {
14
- testContext = await TestContext_1.TestContext.instance();
15
- if (!testContext.settings.runiModelReadRpcTests)
16
- this.skip();
17
- });
18
- const existing = {
19
- name: core_common_1.BisCodeSpec.subject,
20
- id: "0x1f",
21
- };
22
- /** verify that given codespec has expected properties */
23
- function verifyCodeSpec(codeSpec, requestedIModel, requestedName, requestedId) {
24
- expect(codeSpec).to.exist;
25
- expect(codeSpec.id).to.exist;
26
- expect(codeSpec.id).to.equal(requestedId);
27
- expect(codeSpec.name).to.exist;
28
- expect(codeSpec.name).to.equal(requestedName);
29
- expect(codeSpec.iModel).to.exist;
30
- expect(codeSpec.iModel.name).to.equal(requestedIModel.name);
31
- }
32
- it("should return code spec by name", async () => {
33
- const iModel = await testContext.iModelWithChangesets.getConnection();
34
- const codeSpecName = existing.name;
35
- const codeSpecId = existing.id;
36
- const codeSpec = await iModel.codeSpecs.getByName(codeSpecName);
37
- verifyCodeSpec(codeSpec, iModel, codeSpecName, codeSpecId);
38
- });
39
- it("should return code spec by id", async () => {
40
- const iModel = await testContext.iModelWithChangesets.getConnection();
41
- const codeSpecName = existing.name;
42
- const codeSpecId = existing.id;
43
- const codeSpec = await iModel.codeSpecs.getById(codeSpecId);
44
- verifyCodeSpec(codeSpec, iModel, codeSpecName, codeSpecId);
45
- });
46
- });
47
- //# sourceMappingURL=CodeSpecs.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeSpecs.test.js","sourceRoot":"","sources":["../../src/frontend/CodeSpecs.test.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;AAE/F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oBAAqB,CAAC,aAAa,EAAE,CAAC;QACvE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;QACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;QAE/B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAEhE,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAqB,CAAC,aAAa,EAAE,CAAC;QACvE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;QACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;QAE/B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAE5D,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,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 * as chai from \"chai\";\nimport { BisCodeSpec, CodeSpec } from \"@itwin/core-common\";\nimport { IModelConnection } from \"@itwin/core-frontend\";\nimport { TestContext } from \"./setup/TestContext\";\n\nconst expect = chai.expect;\n\ndescribe(\"Get Code Specs\", () => {\n let testContext: TestContext;\n\n before(async function () {\n testContext = await TestContext.instance();\n\n if (!testContext.settings.runiModelReadRpcTests)\n this.skip();\n });\n\n const existing = {\n name: BisCodeSpec.subject,\n id: \"0x1f\",\n };\n\n /** verify that given codespec has expected properties */\n function verifyCodeSpec(codeSpec: CodeSpec, requestedIModel: IModelConnection, requestedName: string, requestedId: string) {\n\n expect(codeSpec).to.exist;\n\n expect(codeSpec.id).to.exist;\n expect(codeSpec.id).to.equal(requestedId);\n\n expect(codeSpec.name).to.exist;\n expect(codeSpec.name).to.equal(requestedName);\n\n expect(codeSpec.iModel).to.exist;\n expect(codeSpec.iModel.name).to.equal(requestedIModel.name);\n }\n\n it(\"should return code spec by name\", async () => {\n const iModel = await testContext.iModelWithChangesets!.getConnection();\n const codeSpecName = existing.name;\n const codeSpecId = existing.id;\n\n const codeSpec = await iModel.codeSpecs.getByName(codeSpecName);\n\n verifyCodeSpec(codeSpec, iModel, codeSpecName, codeSpecId);\n });\n\n it(\"should return code spec by id\", async () => {\n const iModel = await testContext.iModelWithChangesets!.getConnection();\n const codeSpecName = existing.name;\n const codeSpecId = existing.id;\n\n const codeSpec = await iModel.codeSpecs.getById(codeSpecId);\n\n verifyCodeSpec(codeSpec, iModel, codeSpecName, codeSpecId);\n });\n});\n"]}