It adds functions to only run unit tests on files that are different between two branches or on changed files that haven't yet been commited;
You can install this package using either npm or yarn.
If using Yarn:
- Install the package globally
yarn global add @jagoncalves14/pixelmatters-zsh-unit-testing
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 👍
- 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
- Run unit tests on changed files:
testchanges
- Run unit tests on changed files and update its snapshots:
testchanges -u
- 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
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.
Licensed under the MIT License.