Skip to content

Commit eb70f7f

Browse files
committed
test(rest): the new pin imports with an explicit .js extension (#9232)
`check:type-check-debt --re-measure` reported @objectstack/rest's TEST_DEBT at 156 against a frozen 155: TS2835, this package resolves `nodenext` and the new file's relative import had no extension. The neighbouring suites omit it and are part of that frozen pile; a new file must not add to a shrink-only ratchet, and raising the entry is maintainer-only and not a way to get CI green. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ad0beb3 commit eb70f7f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/rest/src/rest-thrown-code-vocabulary.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
5252
import { ErrorCode, standardErrorCodeForHttpStatus } from '@objectstack/spec/api';
5353
import { INTERNAL_ERROR_MESSAGE } from '@objectstack/types';
54-
import { mapDataError, sendThrownError, sendDeclaredFault } from './error-response';
54+
// `.js` extension deliberately: this package resolves `nodenext`, so an
55+
// extensionless relative import is a `tsc` error (TS2835). The neighbouring
56+
// suites omit it and are part of this package's frozen TEST_DEBT — a new file
57+
// must not add to a shrink-only ratchet.
58+
import { mapDataError, sendThrownError, sendDeclaredFault } from './error-response.js';
5559

5660
// ---------------------------------------------------------------------------
5761
// Vehicles

0 commit comments

Comments
 (0)