Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE - fe-mockserver-plugin-ts #804

Open
tobiasqueck opened this issue Mar 19, 2024 · 0 comments
Open

FEATURE - fe-mockserver-plugin-ts #804

tobiasqueck opened this issue Mar 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tobiasqueck
Copy link
Contributor

tobiasqueck commented Mar 19, 2024

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

@tobiasqueck tobiasqueck changed the title FEATURE - FEATURE - fe-mockserver-plugin-ts Mar 19, 2024
@tobiasqueck tobiasqueck added the enhancement New feature or request label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant