Skip to content

Commit

Permalink
Update docs/cicd/configure-an-sap-fiori-for-the-abap-platform-job-in-…
Browse files Browse the repository at this point in the history
…the-job-editor-4c26bfb.md

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
  • Loading branch information
longieirl and o-liver authored Apr 8, 2024
1 parent 5ec19b7 commit 1985157
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,31 +551,31 @@ The following steps will introduce [Karma](https://github.com/SAP/karma-ui5), a

4. Add the following minimal configuration to your `karma.conf.js` file:

```JS
module.exports = function(config) {
config.set({
frameworks: ["ui5"],
ui5: {
configPath: "ui5-mock.yaml". // change to ui5.yaml if project does not exist.
},
browsers: ["ChromeHeadless"],
customLaunchers: {
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--window-size=1920,1080']
}
},
browserConsoleLogOptions: {
level: "error"
},
singleRun: true,
proxies: {
'/base/webapp/resources': 'http://127.0.0.1:' + config.port + '/resources',
'/base/webapp/test-resources': 'http://127.0.0.1:' + config.port + '/test-resources'
}
});
};
```
```JS
module.exports = function(config) {
config.set({
frameworks: ["ui5"],
ui5: {
configPath: "ui5-mock.yaml". // change to ui5.yaml if project does not exist.
},
browsers: ["ChromeHeadless"],
customLaunchers: {
ChromeHeadlessCustom: {
base: 'ChromeHeadless',
flags: ['--window-size=1920,1080']
}
},
browserConsoleLogOptions: {
level: "error"
},
singleRun: true,
proxies: {
'/base/webapp/resources': 'http://127.0.0.1:' + config.port + '/resources',
'/base/webapp/test-resources': 'http://127.0.0.1:' + config.port + '/test-resources'
}
});
};
```
The `ui5` property is configured using `configPath` which is loading the default UI5 resources. If a mock server is later added to the project, the `configPath` should be updated to `ui5-mock.yaml` to reflect this new configuration, refer to [Installing MockServer Guide](https://help.sap.com/docs/SAP_FIORI_tools/17d50220bcd848aa854c9c182d65b699/253805578f04461a9741983a630ce4f1.html?locale=en-USstate%3DPRODUCTION)
Expand Down

0 comments on commit 1985157

Please sign in to comment.