tests.Replayed
The tree a replay left beside the one the device recorded, for comparing them in a golden test.
Utilisation
Compare a recorded native batch stream with its saved tree.
Ce type est utilisé par tests.replay
// Compare a recorded native batch stream with its saved tree.
import { assert, replay, test } from 'kuito/tests';
test('recorded checkout keeps its native tree', async () => {
// Supply a .krec recording and its adjacent .tree file from your app.
const result = await replay('tests/fixtures/checkout.krec');
assert.notEqual(result.recorded, null);
assert.equal(result.tree, result.recorded);
});Déclaration du type
export interface Replayed {
/** The tree the replay left, one line per view as a shell describes it. */
tree: string;
/** The tree the device left, saved beside the recording as `<file>.tree`; null without one. */
recorded: string | null;
}Membres 2
| Nom | Type | Requis | Description |
|---|---|---|---|
tree | string | Oui | The tree the replay left, one line per view as a shell describes it. |
recorded | string | Oui | The tree the device left, saved beside the recording as <file>.tree; null without one. |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.