export interface Person {
fullName: string;
}
What is the best way to create unit tests for the above interface and ensure that Karma includes it in the code coverage report?
I attempted to assert properties by creating an object, but it seems that Karma is not recognizing it in the coverage report, even though the test passes.
import { Person } from "./person";
describe('Person', () => {
it('should have correct name property', () => {
const person: Person = {
fullName: "John Doe",
}
expect(person.fullName).toEqual("John Doe");
});
});