diff --git a/apps/api/src/database/seeds/vertical-slice.seed.spec.ts b/apps/api/src/database/seeds/vertical-slice.seed.spec.ts index d8ac3f5..ce662b8 100644 --- a/apps/api/src/database/seeds/vertical-slice.seed.spec.ts +++ b/apps/api/src/database/seeds/vertical-slice.seed.spec.ts @@ -1284,9 +1284,7 @@ describe('seedVisibleVerticalSlice', () => { await seedVisibleVerticalSlice(dataSource); - const hide = itemRepository.rows.find( - (row) => row.key === 'scorched-hide', - ); + const hide = itemRepository.rows.find((row) => row.key === 'scorched-hide'); const mark = itemRepository.rows.find( (row) => row.key === 'raider-warband-mark', ); @@ -1334,9 +1332,7 @@ describe('seedVisibleVerticalSlice', () => { )?.silverReward as number; // The longer trip has to pay, or §10's loop has no pull (slice §6). - expect(silverFor('scorched-hide')).toBeGreaterThan( - silverFor('tough-hide'), - ); + expect(silverFor('scorched-hide')).toBeGreaterThan(silverFor('tough-hide')); expect(silverFor('raider-warband-mark')).toBeGreaterThan( silverFor('bandit-insignia'), ); @@ -1569,9 +1565,7 @@ describe('seedVisibleVerticalSlice', () => { await seedVisibleVerticalSlice(dataSource); - const ashPit = locationRepository.rows.find( - (row) => row.key === 'ash-pit', - ); + const ashPit = locationRepository.rows.find((row) => row.key === 'ash-pit'); const pool = locationMonsterRepository.rows.filter( (row) => row.locationId === ASH_PIT_ID, ); diff --git a/apps/api/src/world/discovery/world-discovery.service.spec.ts b/apps/api/src/world/discovery/world-discovery.service.spec.ts index 6526441..76f1afc 100644 --- a/apps/api/src/world/discovery/world-discovery.service.spec.ts +++ b/apps/api/src/world/discovery/world-discovery.service.spec.ts @@ -46,7 +46,9 @@ function buildService(options: { const locationRepository = { findOneBy: jest.fn(({ key }: { key: string }) => - Promise.resolve(locations.find((location) => location.key === key) ?? null), + Promise.resolve( + locations.find((location) => location.key === key) ?? null, + ), ), } as unknown as Repository; diff --git a/apps/api/src/world/local-location-interaction.spec.ts b/apps/api/src/world/local-location-interaction.spec.ts index b72c8a9..d40b23a 100644 --- a/apps/api/src/world/local-location-interaction.spec.ts +++ b/apps/api/src/world/local-location-interaction.spec.ts @@ -111,9 +111,11 @@ function buildService(options: { alreadyDiscovered?: boolean; }) { const currentLocation = location(BURNED_ROAD_ID, options.pointsOfInterest); - const discover = jest.fn().mockResolvedValue( - options.alreadyDiscovered ? null : { key: 'ash-pit', name: 'Ash Pit' }, - ); + const discover = jest + .fn() + .mockResolvedValue( + options.alreadyDiscovered ? null : { key: 'ash-pit', name: 'Ash Pit' }, + ); const worldDiscovery = { discover, isTravelAllowed: () => Promise.resolve(true), diff --git a/docs/playable-slices/0.10-Abandoned-Watchpost-implementation-notes.md b/docs/playable-slices/0.10-Abandoned-Watchpost-implementation-notes.md index 0913a7d..23e8cd6 100644 --- a/docs/playable-slices/0.10-Abandoned-Watchpost-implementation-notes.md +++ b/docs/playable-slices/0.10-Abandoned-Watchpost-implementation-notes.md @@ -283,6 +283,18 @@ None of these were judged to change behavior a player can hit; they are seams a future slice's tests should tighten, most likely whichever slice next touches the combat engine or the seed's encounter-pool weights. +**Lint state.** `npm run lint --workspace=@ashen-realms/api` (scoped to the +whole API workspace) fails: roughly a hundred `@typescript-eslint` and +`prettier/prettier` errors remain, all in the quest system, the rewards +service, the shops module, migration-runner specs and other files this +slice never touched — confirmed pre-existing by `git blame` timestamps +predating this branch's base commit. This slice's own files pass lint +cleanly; the five formatting violations `eslint --fix` originally found in +`world-discovery.service.spec.ts`, `local-location-interaction.spec.ts` and +`vertical-slice.seed.spec.ts` were fixed by hand, scoped to just those +locations. The pre-existing errors are left alone, out of this slice's +scope and the AGENTS.md rule against unrelated refactoring. + --- ## 7. Outstanding manual verification