class Bar {} class Foo extends Bar { constructor() { const fn = () => super(); } } expect(() => new Foo()).toThrow("this hasn't been initialised");