When Ava's test.throws is used with a Promise value, it cannot be transformed directly to a Jest .toThrowError call, since the latter does not support Promise values.
Any ideas on what can be done here? jestjs/jest#1377 looks like it might be related.