From ac23ae5afe7f46ac017e6e7b7da3560aaedede13 Mon Sep 17 00:00:00 2001 From: Theraloss Date: Thu, 3 Sep 2020 16:20:39 +0200 Subject: [PATCH] Fix sqlite test pool Signed-off-by: Danilo Polani --- docs/v3.x/guides/unit-testing.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/v3.x/guides/unit-testing.md b/docs/v3.x/guides/unit-testing.md index 898f3bfb1b..f830852e7c 100644 --- a/docs/v3.x/guides/unit-testing.md +++ b/docs/v3.x/guides/unit-testing.md @@ -24,11 +24,11 @@ Please note that this guide will not work if you are on Windows using the SQLite :::: tabs ::: tab yarn -`yarn add jest supertest` +`yarn add -D jest supertest` ::: ::: tab npm -`npm install jest supertest` +`npm i -D jest supertest` ::: :::: @@ -89,7 +89,7 @@ The whole file will look like this: "useNullAsDefault": true, "pool": { "min": 0, - "max": 15 + "max": 1 } } } @@ -158,9 +158,8 @@ afterAll(async done => { done(); }); -it('strapi is defined', async done => { +it('strapi is defined', () => { expect(strapi).toBeDefined(); - done(); }); ```