testing-unit
Unit Testing
Run and manage unit tests across multiple languages and frameworks.
Run Jest tests
# Run all Jest tests
npx jest
# Run specific test file
npx jest path/to/file.test.ts
# Run tests matching a pattern
npx jest --testPathPattern="auth"
npx jest -t "should authenticate user"
# Run in verbose mode
npx jest --verbose
Run Vitest
# Run all Vitest tests
npx vitest run
# Run specific file
npx vitest run path/to/file.test.ts
# Run tests matching a filter
npx vitest run --reporter=verbose -t "login"
# Run with UI
npx vitest --ui
Run pytest
# Run all tests
python -m pytest
# Run specific file or test
python -m pytest tests/test_auth.py
python -m pytest tests/test_auth.py::test_login -v
# Run tests matching keyword
python -m pytest -k "login or signup"
# Run with verbose output
python -m pytest -v --tb=short
Run Go tests
# Run all tests
go test ./...
# Run specific package
go test ./pkg/auth/...
# Run specific test function
go test -run TestLogin ./pkg/auth/
# Verbose output
go test -v ./...
Run Rust tests
# Run all tests
cargo test
# Run specific test
cargo test test_login
# Run tests in specific module
cargo test --lib auth
# Show stdout from tests
cargo test -- --nocapture
Generate test file
# Vitest: scaffold a test file (example)
# Create src/feature.test.ts with describe/it/expect blocks
# importing from vitest and the module under test
# Jest: scaffold a test file (example)
# Create src/feature.test.ts with describe/it/expect blocks
# importing the module under test
Run with coverage
# Jest coverage
npx jest --coverage
# Vitest coverage
npx vitest run --coverage
# pytest coverage
python -m pytest --cov=src --cov-report=html
# Go coverage
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
# Rust coverage (requires cargo-llvm-cov)
cargo llvm-cov --html
Watch mode
# Jest watch
npx jest --watch
# Vitest watch (default mode)
npx vitest
# pytest watch (requires pytest-watch)
ptw -- -v
# Go watch (requires watchexec or similar)
watchexec -e go -- go test ./...
More from thinkfleetai/thinkfleet-engine
local-whisper
Local speech-to-text using OpenAI Whisper. Runs fully offline after model download. High quality transcription with multiple model sizes.
149flyio-cli-public
Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io: deploys (local or remote builder), viewing status/logs, SSH/console, secrets/config, scaling, machines, volumes, and Fly Postgres (create/attach/manage databases). Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres.
24kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22feishu-bridge
Connect a Feishu (Lark) bot to ThinkFleet via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.
13bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10