Ensuring the properties of an interface align with an object that implements it is crucial for successful unit testing.
If modifications are made to the interface, the unit test should fail if it is not updated with the new members.
Although I attempted to utilize the ts-transformer-keys package for this purpose, it returned an error indicating it is not a function.
interface Test {
mem1: boolean,
mem2: string
}
My ideal scenario would involve executing:
console.log(Object.keys(Test))
and receiving:
['mem1', 'mem2'];