Skip to content

Commit

Permalink
feat(build): add test watch commands to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Apr 30, 2021
1 parent 73f9803 commit e706d48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -135,10 +135,17 @@ package-watch-test-%: ##@1 packages run tests for a package and watch for change
package-update-test-%: ##@1 packages run tests for a package and update its snapshots
@yarn jest -c ./packages/jest.config.js --rootDir . ./packages/${*}/tests -u

package-watch-test-%: ##@1 packages run tests for a package and watch for changes
@yarn jest -c ./packages/jest.config.js --rootDir . ./packages/${*}/tests --watch

packages-test: ##@1 packages run tests for all packages
@echo "${YELLOW}Running test suites for all packages${RESET}"
@yarn jest -c ./packages/jest.config.js --rootDir . ./packages/*/tests

packages-watch-test: ##@1 packages run tests for all packages and watch for changes
@echo "${YELLOW}Running test suites for all packages${RESET}"
@yarn jest -c ./packages/jest.config.js --rootDir . ./packages/*/tests --watch

packages-test-cover: ##@1 packages run tests for all packages with code coverage
@echo "${YELLOW}Running test suites for all packages${RESET}"
@yarn jest -c ./packages/jest.config.js --rootDir . --coverage ./packages/*/tests
Expand Down

0 comments on commit e706d48

Please sign in to comment.