How to use latest QUnit and sinon to test your SAPUI5 applications
SAPUI5 ships QUnit and sinon from its own CDN, pinned to old versions (sinon v4, over seven years old) with no plan to update, so the post walks through pulling in current versions instead: generating a TypeScript app with generator-easy-ui5generator-easy-ui5A Yeoman meta-generator that scaffolds UI5 projects, prompting for a target platform, and loads further sub-generators from the UI5 Community for TypeScript apps, launchpad plugins and libraries.community org, ui5, adding sinon and qunit as devDependencies, and wiring ui5-tooling-modulesui5-tooling-modulesA set of UI5 tooling extensions that load and convert plain npm packages into UI5 AMD-like modules, so the UI5 module loader can consume them.community org, ui5 so the framework's module loader resolves them from node_modules rather than the bundled thirdparty path. It covers both the test starter setup for UI5 >= 1.124 and the traditional test suite/test page setup for older versions, down to the loader map override and a sample QUnit test stubbing a controller with sinon v21.
Where it sits
Who is behind it
Properties
About this work
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community · sapui5-tag.
For your agent
- Ref
content:how-to-use-latest-qunit-and-sinon-to-test-your-sapui5-applications- JSON
- /content/how-to-use-latest-qunit-and-sinon-to-test-your-sapui5-applications.json
- MCP
- Connecting an agent