build(server): the test-mock and hand-built-service ratchets read code, not comments, and see the import() and alias forms

lint:test-mocks missed vi.mock(import('../src/config'), ...), the typed form Vitest takes, and counted mocks quoted in doc comments, which left slack a real mock could take. lint:test-new-service missed a service built under an import alias or as new (Name)(...). Both now strip comments first and recognise those forms; the baselines lose the entries that were only comments.
This commit is contained in:
Maurice
2026-10-10 19:56:54 +02:00
parent ef68c62d80
commit ac918d362f
6 changed files with 106 additions and 23 deletions
-3
View File
@@ -19,7 +19,6 @@
"tests/e2e/feeds.e2e.test.ts": 1,
"tests/e2e/files.e2e.test.ts": 1,
"tests/e2e/google-quota.e2e.test.ts": 1,
"tests/e2e/harness.ts": 1,
"tests/e2e/journey.e2e.test.ts": 1,
"tests/e2e/mailer.e2e.test.ts": 1,
"tests/e2e/maps.e2e.test.ts": 1,
@@ -54,8 +53,6 @@
"tests/e2e/trips.e2e.test.ts": 1,
"tests/e2e/vacay.e2e.test.ts": 1,
"tests/e2e/weather.e2e.test.ts": 1,
"tests/helpers/db-mock.ts": 3,
"tests/helpers/test-db.ts": 1,
"tests/integration/admin.test.ts": 1,
"tests/integration/airtrail-sync-request-context.test.ts": 1,
"tests/integration/api-docs.test.ts": 1,