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 integration tests #2

Open
tonioriol opened this issue Sep 3, 2020 · 1 comment
Open

Add integration tests #2

tonioriol opened this issue Sep 3, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tonioriol
Copy link
Contributor

Instead of mocking the api, that's a closer to real solution: http https://github.com/blueberryapps/vcr.js/

It records one interaction and stores the response, so the call happens only the first time and gets stored as json, next time it takes the json.

It might be useful. But if we think that's not "real" enough, we just use a real contentful space for that.

@tonioriol tonioriol added enhancement New feature or request good first issue Good for newcomers labels Sep 3, 2020
@tonioriol
Copy link
Contributor Author

Reading about the yargs, found that, it might be useful: https://github.com/yargs/yargs/blob/master/docs/advanced.md#testing-a-command-module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants