From 75869d0c103794e4c60f879b6a9f8ca531634694 Mon Sep 17 00:00:00 2001 From: Theerayut Boonkird Date: Fri, 18 Sep 2026 00:43:02 +0100 Subject: [PATCH] chore: adopt the new AIS test into the explicit formatting scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scripts/format.mjs skips *.test.mjs during runtime discovery, so a test added under a discovered root is never seen by format:check until it is listed in scripts/format-scope.json — which is what CODE-BOUNDARIES.md means by adding tests to the explicit list as they are adopted. The file went in unformatted and the check stayed green, hiding it. Listed and formatted; format:check now covers 917 files instead of 916. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/format-scope.json | 3 ++- src/data/aisStreamSentinels.test.mjs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/format-scope.json b/scripts/format-scope.json index caffd41d2..dc623c0c0 100644 --- a/scripts/format-scope.json +++ b/scripts/format-scope.json @@ -743,5 +743,6 @@ "src/director/interactions/interactions.test.mjs", "scripts/qa-director-interactions.mjs", "src/director/sharing/sharing.test.mjs", - "scripts/qa-director-sharing.mjs" + "scripts/qa-director-sharing.mjs", + "src/data/aisStreamSentinels.test.mjs" ] diff --git a/src/data/aisStreamSentinels.test.mjs b/src/data/aisStreamSentinels.test.mjs index 4377c37c2..6595b795e 100644 --- a/src/data/aisStreamSentinels.test.mjs +++ b/src/data/aisStreamSentinels.test.mjs @@ -1,6 +1,9 @@ import test from 'node:test'; import assert from 'node:assert/strict'; -import { aisStreamRows, ingestAisStreamEnvelope } from '../../server/providers/vessels/ais-store.js'; +import { + aisStreamRows, + ingestAisStreamEnvelope, +} from '../../server/providers/vessels/ais-store.js'; // ITU-R M.1371 encodes speed over ground in 0.1-knot units and course over // ground in 0.1-degree units, reserving the top code of each field for "not