@jagoncalves14/pixelmatters-zsh-unit-testing
v1.0.1
Published
Useful zsh functions for unit testing
Downloads
9
Maintainers
Readme
🚀 Get Up and Running
You can install this package using either npm or yarn.
Yarn
If using Yarn:
- Install the package globally
yarn global add @jagoncalves14/pixelmatters-zsh-unit-testing
NPM
If using NPM:
- Install the package as a development dependency::
npm install -g @jagoncalves14/pixelmatters-zsh-unit-testing
At this point you should be good to go 👍
🤝 Usage
- After installing, run the package's CLI command and answer to the questions in the prompt:
pixelmatters-zsh-unit-testing
- Now you're all set and done!
After the CLI command is complete, the following functions are added to you .zshrc config:
- testchanges
- testbranch
Examples
testchanges
- Run unit tests on changed files:
testchanges
- Run unit tests on changed files and update its snapshots:
testchanges -u
testbranch
- Run unit tests on different files between current and target branch:
testbranch
- Run unit tests on different files between current and target branch and update its snapshots:
testbranch -u
- Run unit tests on different files between current and custom target branch:
testbranch fix/some-branch-name
- Run unit tests on different files between current and custom target branch:
testbranch -u fix/some-branch-name
🤝 How to Contribute
Whether you're helping us fix bugs, improve the docs, or spread the word, thank you! 💪 🧡
Check out our Contributing Guide for ideas on contributing and setup steps.
:memo: License
Licensed under the MIT License.