Skip to main content

Function: resetConfig()

resetConfig(): void

Defined in: src/core/config.ts:229

Drop everything set via configure (family runtime defaults stay installed).

Returns​

void

Nothing; the user configuration returns to the built-in defaults.

Example​

import { configure, resetConfig } from 'sportsdataverse';

afterEach(() => resetConfig()); // each test starts from the built-in defaults
configure({ retries: 0 });

Remarks​

Also forgets that retries / timeoutMs were user-set, so a family's registered default applies again. Use _unregisterFamilyDefaults (internal) to drop those.