Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("should throw further the error", async () => {
makeExecutableSchema.mockImplementation(() => {
throw new Error("Something is wrong");
});
const { broker, svc, stop } = await startService();
expect(() => svc.generateGraphQLSchema([])).toThrow(Errors.MoleculerServerError);
await stop();
});
});