SAP / open-ux-odata

Enable community collaboration to jointly promote and facilitate best in class framework and tooling capabilities when working with OData services.
Apache License 2.0
51 stars 10 forks source link

FEATURE - fe-mockserver-plugin-ts #804

Open tobiasqueck opened 6 months ago

tobiasqueck commented 6 months ago

As a developer, I want to use the mockserver with custom mocking logic written in typescript, so that I can enjoy all the benefits of typescript development

Description

It should be possible to define the mocking logic for an entity using typescript and it should work out of the box i.e. it shouldn't need to be required to have additional configurations to transpile these files.

Technical Design

I would recommend to design it as a plugin like the fe-mockserver-plugin-cds so that the functionality can be added only if needed since I assume the amount of project requiring custom mocking logic is small, and then ones understanding the beauty of typescript even smaller.

Acceptance Criteria

GivenWhenThen format (https://martinfowler.com/bliki/GivenWhenThen.html)

Given I have a custom script for a mocked entity when I execute the mockserver with the new functionality then my custom script works without the requirement for me to transpile it firt

Notes

@petermuessig @nlunets