ui5-test-runner 5.3.2 → 5.3.3
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 +3 -3
- package/src/qunit-hooks.js +3 -1
- package/src/ui5.js +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui5-test-runner",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Standalone test runner for UI5",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@openui5/types": "^1.127.0",
|
|
53
|
-
"@ui5/cli": "^4.0.
|
|
53
|
+
"@ui5/cli": "^4.0.6",
|
|
54
54
|
"@ui5/middleware-code-coverage": "^2.0.0",
|
|
55
55
|
"dotenv": "^16.4.5",
|
|
56
56
|
"jest": "^29.7.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"standard": "^17.1.0",
|
|
61
61
|
"start-server-and-test": "^2.0.5",
|
|
62
62
|
"typescript": "^5.5.4",
|
|
63
|
-
"ui5-tooling-transpile": "^3.4.
|
|
63
|
+
"ui5-tooling-transpile": "^3.4.8"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
66
|
"fsevents": "^2.3.3"
|
package/src/qunit-hooks.js
CHANGED
|
@@ -100,7 +100,9 @@ async function done (job, urlWithHash, report) {
|
|
|
100
100
|
}
|
|
101
101
|
page.end = new Date()
|
|
102
102
|
if (report.__coverage__) {
|
|
103
|
-
|
|
103
|
+
if (job.coverage) {
|
|
104
|
+
await collect(job, url, report.__coverage__)
|
|
105
|
+
}
|
|
104
106
|
delete report.__coverage__
|
|
105
107
|
}
|
|
106
108
|
page.report = report
|
package/src/ui5.js
CHANGED
|
@@ -129,6 +129,9 @@ module.exports = {
|
|
|
129
129
|
}]
|
|
130
130
|
|
|
131
131
|
job.libs.forEach(({ relative, source }) => {
|
|
132
|
+
if (source.endsWith('/') || source.endsWith('\\')) {
|
|
133
|
+
source = source.substring(0, source.length - 1)
|
|
134
|
+
}
|
|
132
135
|
mappings.unshift({
|
|
133
136
|
match: new RegExp(`\\/resources\\/${relative.replace(/\//g, '\\/')}(.*)`),
|
|
134
137
|
cwd: source,
|
|
@@ -136,7 +139,14 @@ module.exports = {
|
|
|
136
139
|
static: !job.watch && !job.debugDevMode
|
|
137
140
|
}, {
|
|
138
141
|
match: new RegExp(`\\/resources\\/${relative.replace(/\//g, '\\/')}(.*)`),
|
|
139
|
-
|
|
142
|
+
custom: async (request, response, $1) => {
|
|
143
|
+
if ($1 === undefined) {
|
|
144
|
+
getOutput(job).debug('libs', `Unable to map ${relative} : $1 is undefined`)
|
|
145
|
+
} else {
|
|
146
|
+
getOutput(job).debug('libs', `Unable to map ${relative}/${$1} to ${join(source, $1)}`)
|
|
147
|
+
}
|
|
148
|
+
return 404
|
|
149
|
+
}
|
|
140
150
|
})
|
|
141
151
|
})
|
|
142
152
|
|