1.2.10 • Published 4 months ago
@zilero/vitest v1.2.10
✨ Opinionated Vitest configuration for modern testing
✨ Features
- 📦 Zero-config setup
- ⚡️ Lightning fast execution
- 🎯 React Testing Library integration
- 🔧 TypeScript support out of the box
- 🚀 Next.js compatible
- 💪 Code coverage reporting
- 🎭 UI mode for test debugging
- 📊 JUnit reports for CI/CD
📥 Installation
Using npm
npm install --save-dev @zilero/vitest
Using yarn
yarn add -D @zilero/vitest
Using pnpm
pnpm install -D @zilero/vitest
🚀 Quick start
Create the vite.config.js
at the root of your project:
import { vitest } from '@zilero/vitest';
module.exports = vitest;
Add scripts to your package.json
:
"scripts": {
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:ci": "vitest run --coverage --reporter=json --reporter=junit"
}
🤝 Contributing
We'd love for you to contribute to @zilero/vitest
! Whether it's reporting bugs, suggesting features, or submitting pull requests, your help is always appreciated.
How to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
📜 Code of Conduct
Please follow our Code of Conduct when participating in this project to ensure a welcoming and productive atmosphere.
🔒 Security Policy
Security is our priority. If you encounter any issues, please read our full Security Policy to report vulnerabilities safely and responsibly.
👥 Team
These folks keep the project moving and are resources for help.
📄 License
License @zilero/vitest
is licensed under the MIT License.