Cómo establecer el valor en la propiedad Readonly en TypeScript mientras pruebas unitarias

beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        MyService
      ]
    });
    service = TestBed.get(MyService);
    const timeIntervals = 'timeIntervals';
    Object.defineProperty(service, timeIntervals, { value: timeLists });
  });
Graceful Gnat