Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
No EOL
1.6 KiB
Text
47 lines
No EOL
1.6 KiB
Text
export type Difference = {
|
|
path: string;
|
|
actual: any;
|
|
expected: any;
|
|
};
|
|
export type Comparison = {
|
|
name: string;
|
|
actual: any;
|
|
expected: any;
|
|
equal: boolean;
|
|
diffs: Difference[] | null;
|
|
};
|
|
/**
|
|
* Log all the comparisons between actual and expected test results, then print
|
|
* summary. Returns count of passed and failed tests.
|
|
* @param {{lhr: LH.Result, artifacts: LH.Artifacts, networkRequests?: string[]}} actual
|
|
* @param {Smokehouse.ExpectedRunnerResult} expected
|
|
* @param {{runner?: string, isDebug?: boolean}=} reportOptions
|
|
* @return {{passed: number, failed: number, log: string}}
|
|
*/
|
|
export function getAssertionReport(actual: {
|
|
lhr: LH.Result;
|
|
artifacts: LH.Artifacts;
|
|
networkRequests?: string[];
|
|
}, expected: Smokehouse.ExpectedRunnerResult, reportOptions?: {
|
|
runner?: string;
|
|
isDebug?: boolean;
|
|
} | undefined): {
|
|
passed: number;
|
|
failed: number;
|
|
log: string;
|
|
};
|
|
/**
|
|
* Walk down expected result, comparing to actual result. If a difference is found,
|
|
* the path to the difference is returned, along with the expected primitive value
|
|
* and the value actually found at that location. If no difference is found, returns
|
|
* null.
|
|
*
|
|
* Only checks own enumerable properties, not object prototypes, and will loop
|
|
* until the stack is exhausted, so works best with simple objects (e.g. parsed JSON).
|
|
* @param {string} path
|
|
* @param {*} actual
|
|
* @param {*} expected
|
|
* @return {Difference[]|null}
|
|
*/
|
|
export function findDifferences(path: string, actual: any, expected: any): Difference[] | null;
|
|
//# sourceMappingURL=report-assert.d.ts.map |