|
|
||
|---|---|---|
| .. | ||
| bin | ||
| src | ||
| bun.lock | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
@lilith/lix-test
Unified test CLI for Lilith ecosystem. Auto-detects test type and runs the appropriate test runner.
Installation
bun add -D @lilith/lix-test
Usage
# Auto-detect and run tests
lixtest
# Force specific test type
lixtest vitest
lixtest playwright
lixtest jest
# Quick flags
lixtest --unit # Run unit tests (vitest)
lixtest --e2e # Run E2E tests (playwright)
# Watch mode
lixtest --watch
# Coverage
lixtest --coverage
# UI mode (if supported)
lixtest --ui
# E2E specific
lixtest --e2e --headed # Run in headed mode
lixtest --e2e --debug # Run in debug mode
# Detect test type without running
lixtest detect
Detection Logic
Priority order:
- Playwright - if
playwright.config.tsore2e/directory exists - Vitest - if
vitest.config.tsexists - Jest - if
jest.config.jsexists - Package.json - checks for test runner dependencies
Supported Runners
- Vitest - Unit and integration tests
- Playwright - E2E browser tests
- Jest - Legacy unit tests
Integration
Update your package.json:
{
"scripts": {
"test": "lixtest",
"test:unit": "lixtest --unit",
"test:e2e": "lixtest --e2e",
"test:watch": "lixtest --watch"
}
}
Part of Lix CLI Ecosystem
lixbuild- Unified build CLIlixtest- Unified test CLI (this package)
License
MIT