Skip to content

resolveClasses

resolveClasses(classNames, classesFilePath, presets): string[]

Defined in: packages/simply-apex-core/src/apexTraceSilence.ts:74

Resolve the list of Apex class names to silence from an explicit list, a classes-file path (a JSON config matching ClassesToSilenceSchema), and the fflib/at4dx/forceDi built-in presets. All sources are combined and deduplicated.

string[]

Explicit class names (e.g. from a --classes flag already split on commas).

string | undefined

Path to a JSON config file, if one was given.

Which of the built-in class presets were requested.

boolean

boolean

boolean

string[]

The resolved, trimmed, deduplicated list of Apex class names.

invalid-classes-file if classesFilePath was given but fails schema validation.