You can call private methods.
If you encountered the following error:
expect(new FooBar(/*...*/).initFooBar()).toEqual(/*...*/);
// TS2341: Property 'initFooBar' is private and only accessible within class 'FooBar'
// @ts-ignore
:// @ts-ignore
expect(new FooBar(/*...*/).initFooBar()).toEqual(/*...*/);