@sap-ux/ui5-test-writer 0.7.11 → 0.7.13

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.
@@ -36,11 +36,10 @@ function writeOPATsconfigJsonUpdates(fs, destinationRoot, log) {
36
36
  * @returns template UI5 version.
37
37
  */
38
38
  function getTemplateUi5Version(ui5Version) {
39
- const templateLtsVersion_1_120 = '1.120.0';
40
39
  if (!ui5Version) {
41
- return templateLtsVersion_1_120;
40
+ return ui5_application_writer_1.ui5LtsVersion_1_120;
42
41
  }
43
- return (0, ui5_application_writer_1.compareUI5VersionGte)(ui5Version, templateLtsVersion_1_120) ? templateLtsVersion_1_120 : ui5_application_writer_1.ui5LtsVersion_1_71;
42
+ return (0, ui5_application_writer_1.compareUI5VersionGte)(ui5Version, ui5_application_writer_1.ui5LtsVersion_1_120) ? ui5_application_writer_1.ui5LtsVersion_1_120 : ui5_application_writer_1.ui5LtsVersion_1_71;
44
43
  }
45
44
  /**
46
45
  * Filters files based on the template UI5 version.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-test-writer",
3
3
  "description": "SAP UI5 tests writer",
4
- "version": "0.7.11",
4
+ "version": "0.7.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -24,16 +24,18 @@
24
24
  "i18next": "25.3.0",
25
25
  "mem-fs": "2.1.0",
26
26
  "mem-fs-editor": "9.4.0",
27
- "@sap-ux/ui5-application-writer": "1.5.8",
27
+ "@sap-ux/ui5-application-writer": "1.5.9",
28
28
  "@sap-ux/logger": "0.7.0",
29
- "@sap-ux/project-access": "1.30.6"
29
+ "@sap-ux/project-access": "1.30.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ejs": "3.1.2",
33
33
  "@types/fs-extra": "9.0.13",
34
34
  "@types/mem-fs": "1.1.2",
35
35
  "@types/mem-fs-editor": "7.0.1",
36
- "fs-extra": "10.0.0"
36
+ "rimraf": "5.0.5",
37
+ "fs-extra": "10.0.0",
38
+ "@sap-ux/jest-file-matchers": "0.2.4"
37
39
  },
38
40
  "engines": {
39
41
  "node": ">=20.x"
@@ -8,12 +8,12 @@
8
8
  id="sap-ui-bootstrap"
9
9
  src="../../resources/sap-ui-core.js"
10
10
  data-sap-ui-theme="<%= ui5Theme %>"
11
- data-sap-ui-resourceroots='{
11
+ data-sap-ui-resource-roots='{
12
12
  "<%= appId %>": "../../",
13
13
  "integration": "./"
14
14
  }'
15
- data-sap-ui-animation="false"
16
- data-sap-ui-compatVersion="edge"
15
+ data-sap-ui-animation-mode="none"
16
+ data-sap-ui-compat-version="edge"
17
17
  data-sap-ui-async="true"
18
18
  data-sap-ui-preload="async">
19
19
  </script>
@@ -1,7 +1,7 @@
1
1
  /* global QUnit */
2
+ QUnit.config.autostart = false;
2
3
 
3
4
  sap.ui.require(["<%= appIdWithSlash %>/test/integration/AllJourneys"
4
5
  ], function () {
5
- QUnit.config.autostart = false;
6
6
  QUnit.start();
7
7
  });
@@ -6,7 +6,7 @@
6
6
  <script
7
7
  id="sap-ui-bootstrap"
8
8
  src="../../resources/sap-ui-core.js"
9
- data-sap-ui-resourceroots='{
9
+ data-sap-ui-resource-roots='{
10
10
  "<%= appIdWithSlash %>": "../../",
11
11
  "unit": "."
12
12
  }'
@@ -1,12 +1,10 @@
1
1
  /* global QUnit */
2
2
  QUnit.config.autostart = false;
3
3
 
4
- sap.ui.getCore().attachInit(function () {
5
- "use strict";
4
+ sap.ui.require([
5
+ "unit/AllTests"
6
+ ], function () {
7
+ "use strict";
6
8
 
7
- sap.ui.require([
8
- "<%= appIdWithSlash %>/test/unit/AllTests"
9
- ], function () {
10
- QUnit.start();
11
- });
12
- });
9
+ QUnit.start();
10
+ });