From 6bb65cf8ed950106e8a3235ae60ae6c64636b645 Mon Sep 17 00:00:00 2001 From: leetcrypt Date: Sun, 15 Feb 2026 18:36:55 -0800 Subject: [PATCH] fix: add missing 'test' script to package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem npm test was failing with 'Missing script: test' error. Project has Python tests but package.json only defined test:decoder script. ## Solution Added test scripts to package.json: - test: Runs pytest (default npm test command) - test:python: Explicit Python test runner - test:coverage: Runs tests with coverage report ## Verification ✓ npm test now runs successfully ✓ All 56 Python tests pass ✓ 2.54s execution time Test suite includes: - 4 RTL_433 integration tests - 26 GPS validation tests - 15 preamble/frequency tests - 11 timing analyzer tests 🎯 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a8d7b23..674e515 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "description": "IoT RF Device Mapping Platform - Wigle for Sub-GHz Signals", "type": "module", "scripts": { - "test:decoder": "node static/js/decoder/test.js" + "test": "python -m pytest tests/ -v", + "test:decoder": "node static/js/decoder/test.js", + "test:python": "python -m pytest tests/ -v", + "test:coverage": "python -m pytest tests/ --cov=src --cov-report=html" }, "keywords": [ "rf",