mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
Set Jest config file in package script Include module path Include tests in project folders Remove index module exports Hardcode configuration parameters Move parameter binding into main run function Use alias imports Run test sequentially Remove cleanup (async conflict) Revert Jest option Increase test timeout to 15 seconds
17 lines
681 B
TypeScript
17 lines
681 B
TypeScript
import { CommitInfoSet } from "./CommitInfoSet";
|
|
import { ReleaseInformation } from "./ReleaseInformation";
|
|
import { VersionClassification } from "./VersionClassification";
|
|
|
|
/**
|
|
* Defines the 'business logic' to turn commits into parameters for creating
|
|
* output values
|
|
*/
|
|
export interface VersionClassifier {
|
|
/**
|
|
* Produces the version classification for a given commit set
|
|
* @param lastRelease - The last release information
|
|
* @param commitSet - The commits to classify, ordered from most recent to oldest
|
|
* @returns - The version classification
|
|
*/
|
|
ClassifyAsync(lastRelease: ReleaseInformation, commitSet: CommitInfoSet): Promise<VersionClassification>;
|
|
}
|