import data from '../../docs/default-firebase-data.json' ; import { MemberData } from './member' ; import { TeamData } from './team' ; import { allKeys } from './utils' ; type Team = TeamData & { members : MemberData [ ] ; } ; describe ( 'partner' , ( ) => { it ( 'matches the shape of the default data' , ( ) => { const teams = Object . values ( data [ 'team' ] ) ; const keys = [ 'members' , 'title' ] ; expect ( teams ) . toHaveLength ( 2 ) ; expect ( allKeys ( teams ) ) . toStrictEqual ( keys ) ; } ) ; } ) ;