mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user