Intento hacer esto:
it('should throw an error', async ()=> { expect.assertions(1); try { await processor({}, MODULE_CONFIG) } catch (e) { expect(e).toBe("[TypeError: Cannot read properties of undefined (reading 'match')]") } });pero me da este error:
Traté de toMatch como en los documentos, pero también da un error (uno que parece aún peor)
Intenté usar rejects.tobe en su lugar, pero recibo el mismo error: