This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Description
Currently if you do the following:
test('invalid name', async (t) => {
await t.throwsAsync(
sao.mock({ generator }, { ...defaults, name: 'Foo Bar Baz Beep' }),
{ message: /package name cannot have uppercase letters/ }
);
});
the return will be:
Error {
message: 'validation failed for prompt: [object Object]',
}
instead of returning the correct error. It does work correctly when not using mock.