I have an angular app where I need to test a mat-dilaog by passing data. I am able to pass it through as below.
{ provide: MAT_DIALOG_DATA, useValue: staffData },