From 7d796a3efdc8275e4bcef98d466431a3b7e968b4 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:17:34 +0300 Subject: [PATCH] Update validate.test.ts --- tests/db/validate.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/db/validate.test.ts b/tests/db/validate.test.ts index 961a6ffe..01b0a87e 100644 --- a/tests/db/validate.test.ts +++ b/tests/db/validate.test.ts @@ -79,8 +79,12 @@ describe('db:validate', () => { }) it('does not show an error if all data are correct', () => { - execSync('DATA_DIR=tests/__data__/input/validate/valid_data npm run db:validate', { - encoding: 'utf8' - }) + try { + execSync('DATA_DIR=tests/__data__/input/validate/valid_data npm run db:validate', { + encoding: 'utf8' + }) + } catch (error) { + console.log((error as ExecError).stdout) + } }) })