Cumulocity-IoT / cumulocity-cypress

Collection of commands and utilities to be used for automating tests for Cumulocity with Cypress.
Apache License 2.0
8 stars 2 forks source link

Fix registering FetchClient provider in cy.mount #76

Closed thomaswinkler closed 6 months ago

thomaswinkler commented 6 months ago

cy.mount registration of FetchClient provider fails as @c8y/client comes with cjs and esm builds. With current tsconfig settings, cy.mount will use require (cjs) instead of esm that is used by ngx-components. With this, FetchClient provider is not used by ngx-components.

thomaswinkler commented 6 months ago

Improve error handling and throw errors if no auth or no base url is provided.