Neoclassical Programming Multitude

    @sap-cloud-sdk/test-util
    TypeScript icon, indicating that this package has built-in type declarations

    2.11.0 • Public • Published

    SAP Cloud SDK for JavaScript Logo

    @sap-cloud-sdk/test-util

    This package contains utility functions for testing, like loading credentials or creating test destinations.

    Installation

    $ npm install @sap-cloud-sdk/test-util
    

    Usage

    The test-util package makes writing tests for your SAP Business Technology Platform application more convenient.

    For example, you can create a mock destination for your tests by using the function mockTestDestination.

    import { mockTestDestination } from '@sap-cloud-sdk/test-util';
    mockTestDestination('mockDestinationName');
    

    You need to save your system information in local file systems.json:

    {
      "systems": [
        {
          "alias": "mockDestinationName",
          "uri": "https://www.example.com"
        }
      ]
    }

    and credentials.json:

    {
      "credentials": [
        {
          "alias": "SYS_001",
          "username": "username",
          "password": "password"
        }
      ]
    }

    Support

    The recommended way to get in touch with us is to create an issue on GitHub. Select the issue category Bug, Feature or Question depending on the nature of your request. We try to provide fixes, features and answers as soon as possible.

    Contribute

    If you would like to contribute to the SAP Cloud SDK, please make yourself familiar with our contributing guidelines and follow the given instructions.

    Links




    License

    The SAP Cloud SDK is released under the Apache License Version 2.0.

    Install

    npm i @sap-cloud-sdk/test-util

    DownloadsWeekly Downloads

    4,476

    Version

    2.11.0

    License

    Apache-2.0

    Unpacked Size

    32.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • deekshas8
    • florian-richter
    • frankessenberger
    • jjtang
    • marikaner