Merge branch 'slice/0.10-abandoned-watchpost'

This commit is contained in:
Bastian Wagner
2026-08-23 17:36:06 +02:00
5 changed files with 105 additions and 82 deletions

View File

@@ -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,
);

View File

@@ -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<LocationDefinition>;

View File

@@ -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),