ui5-test-runner 5.2.0 → 5.3.1

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": "ui5-test-runner",
3
- "version": "5.2.0",
3
+ "version": "5.3.1",
4
4
  "description": "Standalone test runner for UI5",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -46,21 +46,21 @@
46
46
  "commander": "^12.1.0",
47
47
  "punybind": "^1.2.1",
48
48
  "punyexpr": "^1.0.4",
49
- "reserve": "2.0.1"
49
+ "reserve": "2.0.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@openui5/types": "^1.124.1",
53
- "@ui5/cli": "^3.10.3",
52
+ "@openui5/types": "^1.125.0",
53
+ "@ui5/cli": "^3.11.0",
54
54
  "@ui5/middleware-code-coverage": "^1.1.1",
55
55
  "dotenv": "^16.4.5",
56
56
  "jest": "^29.7.0",
57
57
  "nock": "^13.5.4",
58
- "nyc": "^15.1.0",
58
+ "nyc": "^17.0.0",
59
59
  "rimraf": "^5.0.7",
60
60
  "standard": "^17.1.0",
61
61
  "start-server-and-test": "^2.0.4",
62
- "typescript": "^5.4.5",
63
- "ui5-tooling-transpile": "^3.4.3"
62
+ "typescript": "^5.5.3",
63
+ "ui5-tooling-transpile": "^3.4.5"
64
64
  },
65
65
  "optionalDependencies": {
66
66
  "fsevents": "^2.3.3"
@@ -17,7 +17,7 @@ const addUrlParam = (url, param) => {
17
17
 
18
18
  module.exports = {
19
19
  async addTestPages (job, url, data) {
20
- const { type, opa, modules, pages, page } = data
20
+ const { type, opa, module, pages, page } = data
21
21
  getOutput(job).debug('probe', `addTestPages from ${url}`, data)
22
22
  let testPageUrls
23
23
  if (type === 'none') {
@@ -25,10 +25,13 @@ module.exports = {
25
25
  } else {
26
26
  let receivedPages
27
27
  if (type === 'qunit') {
28
- if (job.splitOpa && opa && modules && modules.length > 1) {
29
- receivedPages = modules.map(moduleId => addUrlParam(stripUrlHash(page), `moduleId=${moduleId}`))
30
- } else {
31
- receivedPages = [page]
28
+ receivedPages = [page]
29
+ if (job.splitOpa && opa && module) {
30
+ if (module.ids && module.ids.length > 1) {
31
+ receivedPages = module.ids.map(id => addUrlParam(stripUrlHash(page), `moduleId=${id}`))
32
+ } else if (module.names && module.names.length > 1) {
33
+ receivedPages = module.names.map(name => addUrlParam(stripUrlHash(page), `module=${name}`))
34
+ }
32
35
  }
33
36
  } else {
34
37
  receivedPages = pages