Structure fixtures so they can be easily tested for exclusivity (#215)

This commit is contained in:
Bjorn Stromberg 2025-06-06 19:58:46 +08:00 committed by GitHub
parent 882a91c54f
commit ef35cc350a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 425 additions and 733 deletions

3
source/utilities.ts Normal file
View file

@ -0,0 +1,3 @@
export function keysOf<T extends Record<PropertyKey, unknown>>(value: T): Array<keyof T> {
return Object.keys(value) as Array<keyof T>;
}