Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
Something went wrong. Try again.
1.0 kB · 26 lines
TypeScript
at debugDirs
123456789101112131415161718192021222324252627import { loggerTest } from '@foxxmd/logging';import { getRoot } from "../ioc.ts";import { transientCache, transientDb } from './utils/TransientTestUtils.ts';import dayjs from 'dayjs';import duration from 'dayjs/plugin/duration.js';import isBetween from 'dayjs/plugin/isBetween.js';import relativeTime from 'dayjs/plugin/relativeTime.js';import isToday from 'dayjs/plugin/isToday.js';import timezone from 'dayjs/plugin/timezone.js';import week from 'dayjs/plugin/weekOfYear.js';import utc from 'dayjs/plugin/utc.js';import { retryTiming } from '../common/infrastructure/Atomic.ts';
dayjs.extend(utc)dayjs.extend(isBetween);dayjs.extend(relativeTime);dayjs.extend(duration);dayjs.extend(timezone);dayjs.extend(isToday);dayjs.extend(week);
const root = getRoot({cache: transientCache, logger: loggerTest, db: transientDb});root.items.cache().init();
// request retries wait 1ms instead of 300-1000ms+ (retry behavior is still tested, just not real backoff time)retryTiming.scale = 0.001;