lix/test
2026-06-10 21:13:00 -07:00
..
bin chore(bin): 🔧 Update bin scripts: lixtest.js, lixws.js, and additional utility script for testing/validation 2026-02-07 19:50:11 -08:00
src chore(src): 🔧 Update Jest config and Bun compatibility files 2026-02-06 01:31:53 -08:00
bun.lock chore(test): 🔧 Update test environment dependencies & regenerate bun.lock for dev packages 2026-02-05 19:05:37 -08:00
package.json deps-upgrade(dependencies): ⬆️ Update and pin dependency versions to enforce consistency across cli, configs, core, run, test, and workspace packages 2026-06-10 21:13:00 -07:00
README.md chore(bin): 🔧 Update test binaries (lixtest.js) and documentation (README.md) 2026-02-05 19:03:33 -08:00
tsconfig.json chore(test): 🔧 Update TypeScript config to enforce stricter strict mode and resolve test module paths 2026-02-05 19:05:37 -08:00
tsup.config.ts chore(test): 🔨 Add/update test coverage with new cases, fix failures, and restructure test directory 2026-02-05 19:02:36 -08:00

@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:

  1. Playwright - if playwright.config.ts or e2e/ directory exists
  2. Vitest - if vitest.config.ts exists
  3. Jest - if jest.config.js exists
  4. 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 CLI
  • lixtest - Unified test CLI (this package)

License

MIT