UNPKG

@sports-alliance/sports-lib

Version:

A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc

9 lines (6 loc) 491 B
import { ActivityParsingOptions } from './src/activities/activity-parsing-options'; // Disable unit stream generation by default for tests to improve performance // This creates separate arrays for km/h, mph, etc. which are expensive and rarely needed in tests // unless specifically testing the charting logic or unit conversion. ActivityParsingOptions.DEFAULT.generateUnitStreams = false; console.log('Jest Setup: Disabled ActivityParsingOptions.generateUnitStreams for faster tests.');