From d097cd0742ec2a6c2f595b7b94c903b633827463 Mon Sep 17 00:00:00 2001 From: hirsch Date: Wed, 15 Apr 2020 19:39:37 +0200 Subject: [PATCH] docs: improve testing example --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b168cb65..273691fa 100755 --- a/README.md +++ b/README.md @@ -340,8 +340,10 @@ However, if the test database is not in memory, than use the `--runInBand` flag ```typescript describe("UserService", () => { + let connection: Connection + beforeAll(async (done) => { - await useRefreshDatabase() + connection = await useRefreshDatabase({ connection: 'memory' }) await useSeeding() const user = await factory(User)().make()