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

Tests for Main CLI Function #77

Open
3 tasks
Tracked by #22
pankajpatel opened this issue Apr 19, 2022 · 1 comment
Open
3 tasks
Tracked by #22

Tests for Main CLI Function #77

pankajpatel opened this issue Apr 19, 2022 · 1 comment

Comments

@pankajpatel
Copy link
Owner

pankajpatel commented Apr 19, 2022

So far, the subsequent functions are getting their own tests

But we would like to move more faster by having automated tests for whole package.

And ability to test the main CLI function is crucial to mark whole package tests.

We would need to find ways to prepare ideal situations to test the main function, situation like:

  • Emulate mock File System with Git and non-git directories
  • Emulate git
  • Emulate process
  • etc.
@pankajpatel pankajpatel mentioned this issue Apr 19, 2022
2 tasks
@pankajpatel pankajpatel changed the title Main CLI Function Tests for Main CLI Function Apr 19, 2022
@pankajpatel
Copy link
Owner Author

One candidate for process emulation is https://www.npmjs.com/package/jest-mock-process

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

No branches or pull requests

1 participant