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

Add JS API to create Mountebank express application #616

Merged
merged 6 commits into from
Sep 12, 2021

Conversation

SuperOleg39
Copy link

Fixes #610

@@ -39,6 +42,7 @@ async function create (options) {
validateImposterExists = middleware.createImposterValidator(imposters),
prometheus = require('prom-client');

prometheus.register.clear();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the place of this code in the tests, but i don't know how mbTest can access directly prom-client from mountebank node_modules

Copy link
Author

@SuperOleg39 SuperOleg39 May 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just require('../../node_modules/prom-client') in test file and it's work, but maybe will not working inside CI?

@bbyars bbyars merged commit 6eac506 into bbyars:master Sep 12, 2021
@bbyars
Copy link
Owner

bbyars commented Sep 12, 2021

Thanks!

@SuperOleg39
Copy link
Author

Thank you!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: JavaScript API for the ability to run mocker on existing server endpoint
2 participants