Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('creates a new model', async () => {
const p: Product = await repo.create({name: 'Ink Pen', slug: 'pen'});
expect(p).instanceof(Product);
expect.exists(p.id);
});