You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring custom webapp paths as described in the docs and using absolute paths, karma-ui5 produces a confusing error message.
Error message:
Could not find defined path to your "webapp" folder.
Please check if the configured path is correct:
module.exports = function(config) {
config.set({
ui5: {
type: "application",
paths: {
webapp: "/xxx/openui5-sample-app/webapp" <-- Not found
}
}
});
};
Sample config
constpath=require("path");module.exports=function(config){"use strict";config.set({frameworks: ["ui5"],browsers: ["Chrome"],browserConsoleLogOptions: {level: "error"},ui5: {type: "application",paths: {// webapp: "webapp" // <-- workswebapp: path.resolve(__dirname,"webapp")// <-- does not work}}});};
Expected behavior:
a) it just works (preferred), or
b) it returns an error that absolute paths are not allowed (not to difficult with path.isAbsolute), or at least
c) adjust the docs to state that it has to be a relative path
The text was updated successfully, but these errors were encountered:
When configuring custom webapp paths as described in the docs and using absolute paths,
karma-ui5
produces a confusing error message.Error message:
Sample config
Repo/branch to reproduce:
https://github.com/mlenkeit/openui5-sample-app/tree/absolute-path-bug
Expected behavior:
a) it just works (preferred), or
b) it returns an error that absolute paths are not allowed (not to difficult with
path.isAbsolute
), or at leastc) adjust the docs to state that it has to be a relative path
The text was updated successfully, but these errors were encountered: