ui5-test-runner 4.3.0 → 4.3.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/index.js CHANGED
@@ -58,10 +58,11 @@ async function main () {
58
58
  job.port = port
59
59
  send({ msg: 'ready', port: job.port })
60
60
  output.serving(url)
61
+ output.reportOnJobProgress()
61
62
  if (job.serveOnly) {
63
+ job.status = 'Serving'
62
64
  return
63
65
  }
64
- output.reportOnJobProgress()
65
66
  await notifyAndExecuteTests(job)
66
67
  if (job.watch) {
67
68
  delete job.start
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui5-test-runner",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "Standalone test runner for UI5",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -69,7 +69,7 @@
69
69
  "reserve": "^1.15.8"
70
70
  },
71
71
  "devDependencies": {
72
- "@openui5/types": "^1.121.0",
72
+ "@openui5/types": "^1.121.1",
73
73
  "@ui5/cli": "^3.9.1",
74
74
  "@ui5/middleware-code-coverage": "^1.1.1",
75
75
  "jest": "^29.7.0",
@@ -3,6 +3,7 @@
3
3
  const { stop } = require('./browsers')
4
4
  const { URL } = require('url')
5
5
  const { getOutput } = require('./output')
6
+ const { stripUrlHash } = require('./tools')
6
7
 
7
8
  module.exports = {
8
9
  async addTestPages (job, url, pages) {
@@ -10,7 +11,7 @@ module.exports = {
10
11
  let testPageUrls
11
12
  pages = pages.map(relativeUrl => {
12
13
  const absoluteUrl = new URL(relativeUrl, url)
13
- return absoluteUrl.toString()
14
+ return stripUrlHash(absoluteUrl.toString())
14
15
  })
15
16
  if (job.pageFilter) {
16
17
  const filter = new RegExp(job.pageFilter)
package/src/reserve.js CHANGED
@@ -20,6 +20,6 @@ module.exports = async job => check({
20
20
  strict: true,
21
21
  'ignore-if-not-found': true
22
22
  },
23
- ...unhandled(job)
23
+ ...job.serveOnly ? [{ status: 404 }] : unhandled(job)
24
24
  ]
25
25
  })