TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/vudovn/antigravity-kit/llms.txt
Use this file to discover all available pages before exploring further.
/test command generates tests, runs existing tests, or checks test coverage. It applies the testing-patterns skill to create comprehensive test suites.
Sub-commands
When to use this
After features
Verify new features work correctly
Before deployment
Ensure everything passes before shipping
Bug prevention
Add tests to prevent regression
CI/CD pipelines
Automate quality checks
How it works
Generate tests
When you test a file or feature:Output format
For test generation
You’ll receive: Test Plan| Test Case | Type | Coverage |
|---|---|---|
| Should create user | Unit | Happy path |
| Should reject invalid email | Unit | Validation |
| Should handle db error | Unit | Error case |
- Describe blocks
- Test cases
- Mocks and fixtures
- Assertions
npm test
For test execution
Test patterns
All generated tests follow the AAA pattern (Arrange-Act-Assert):Usage examples
Key principles
Test behavior not implementation: Focus on what the code does, not how it does it.
One assertion per test: When practical, each test should verify one specific behavior.
Descriptive test names: Test names should clearly state what is being tested.
Mock external dependencies: Isolate the code under test by mocking APIs, databases, etc.
Related agents
- Test Engineer - Testing strategies expert
- QA Automation Engineer - E2E and integration testing
