Run and debug tests in the LED lights monorepo. Use when running tests, debugging test failures, diagnosing timeout errors, or working with the test suite in packages/renderer or packages/sender.
This skill provides test running commands and debugging guidance for the LED lights monorepo.
Run all tests:
npm test --workspaces
Run tests for a specific package:
npm test --workspace=packages/renderer
npm test --workspace=packages/sender
Determine which tests to run:
npm test --workspaces for full suitenpm test --workspace=packages/<package-name>node --test packages/<package>/test/<file>.test.mjsChoose concurrency based on debugging needs:
--test-concurrency=1--test-concurrency=4When tests fail, follow the relevant debugging path below.
npm test --workspaces
npm test --workspace=packages/renderer
npm test --workspace=packages/sender
node --test packages/sender/test/cli.test.mjs
npm test --workspace=packages/sender -- --test-concurrency=1
[TEST DIAGNOSTIC] in output.--test-concurrency=1 to isolate issues.Common causes:
Debug steps:
[TEST DIAGNOSTIC] messagescd packages/sender
node bin/lights-sender.mjs --config test/fixtures/cli_renderer.config.json
Common causes:
Debug steps:
cd packages/renderer
node bin/engine.mjs --config-dir ../../config --port 0
SERVER_PORT=XXXXX in outputcurl -v http://localhost:<port>/
Debug steps:
browser = await puppeteer.launch({ headless: false });
await page.screenshot({ path: 'debug.png' });