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.
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
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