diff --git a/.gitignore b/.gitignore index ddbc150..8654e84 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,10 @@ tools/ # LFS build artifacts os/lfs/output/ +# Test-generated data +data/devices/ +data/queue/ + # Local sensitive scripts (do not commit) scripts/dummy-sa.json scripts/gcloud-startup.ps1 diff --git a/package-lock.json b/package-lock.json index 4166f04..849a223 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1965,9 +1965,9 @@ } }, "node_modules/fast-xml-parser": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.3.tgz", - "integrity": "sha512-2O3dkPAAC6JavuMm8+4+pgTk+5hoAs+CjZ+sWcQLkX9+/tHRuTkQh/Oaifr8qDmZ8iEHb771Ea6G8CdwkrgvYA==", + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.3.4.tgz", + "integrity": "sha512-EFd6afGmXlCx8H8WTZHhAoDaWaGyuIBoZJ2mknrNxug+aZKjkp0a0dlars9Izl+jF+7Gu1/5f/2h68cQpe0IiA==", "funding": [ { "type": "github", @@ -2725,9 +2725,9 @@ } }, "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "version": "6.14.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz", + "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" diff --git a/package.json b/package.json index 4a11978..e43de93 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "build": "npm install", "apply:network-boost": "powershell -ExecutionPolicy Bypass -File scripts/network-boost.ps1 -Apply -Confirm:$false", "show:network-boost": "powershell -ExecutionPolicy Bypass -File scripts/network-boost.ps1", - "test": "echo No-tests-specified", + "test": "node tests/unit/test-device-status-transitions.js", "test:devices": "node tests/test-device-registration.js", "test:integration:devices": "node tests/integration/test-e2e-device-registration.js", "test:unit:devices": "node tests/unit/test-device-status-transitions.js", diff --git a/tests/test-device-registration.js b/tests/test-device-registration.js index fa7770c..0bf6ae7 100644 --- a/tests/test-device-registration.js +++ b/tests/test-device-registration.js @@ -1,5 +1,3 @@ -import fetch from 'node-fetch'; - const BASE = process.env.BASE || 'http://localhost:3001'; async function run() { diff --git a/tests/unit/test-device-status-transitions.js b/tests/unit/test-device-status-transitions.js index ac7f018..1cf6b45 100644 --- a/tests/unit/test-device-status-transitions.js +++ b/tests/unit/test-device-status-transitions.js @@ -1,5 +1,5 @@ -import { saveRegistration, transitionStatus, getRegistration } from '../lib/deviceStore.js'; -import { enqueue, dequeue } from '../lib/messageQueue.js'; +import { saveRegistration, transitionStatus, getRegistration } from '../../lib/deviceStore.js'; +import { enqueue, dequeue } from '../../lib/messageQueue.js'; async function testStatusTransitions() { console.log('Testing status transitions...');