Function: pickTestFields()
pickTestFields<
K>(inventory,fields):PickedInventory<K>
Leaves only id and the given keys on each test record, in that order, to make the output smaller. Suites, diagnostics and the summary are unchanged. The result no longer matches the JSON Schema, which requires every key.
Throws a TypeError for a key that test records don't have.
Type Parameters
K
K extends keyof TestRecord
Parameters
inventory
fields
readonly K[]