unit-tests
Version:
A single command to install libs and setup scripts used in unit testing
28 lines (16 loc) • 794 B
Markdown
# npx unit-tests [test-runner]
A single command to install libs and setup scripts used in unit testing.
All tools also come with [Prettier](https://prettier.io/) defaults
## npx unit-tests jest
Installs Jest with Typescript support and prettier defaults
- [Jest](https://jestjs.io/)
- [Typescript](https://www.typescriptlang.org/)
- Jest and Typescript configuration to build an ES module
## npx unit-tests karma
Installs Karma with Typescript support and Chrome for headless testing
- [Karma](https://karma-runner.github.io/latest/index.html)
- [Typescript](https://www.typescriptlang.org/)
## npx unit-tests jasmine
Installs Jasmine with Typescript support. Tests run on a Node.js environment
- [Jasmine](https://jasmine.github.io/)
- [Typescript](https://www.typescriptlang.org/)