Function: loadExpectations()
August 8, 2026 ยท View on GitHub
@plures/praxis / index / loadExpectations
Function: loadExpectations()
loadExpectations(
dir):Promise<LifecycleExpectation[]>
Defined in: src/lifecycle/expectation.ts:266
Parse expectation files from a directory. Expects .ts/.js files that default-export a LifecycleExpectation or array of them.
Note: In Node.js, this uses dynamic import(). In CLI context, expectations are loaded via the config loader.
Parameters
dir
string
Directory path to scan for expectation files
Returns
Promise<LifecycleExpectation[]>
Array of all valid LifecycleExpectation objects found in the directory