From 231894065ed48ad6890cc311b02c59e1a817be36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=20Tar=C4=B1k=20=C3=87etin?= Date: Sat, 27 Feb 2021 16:55:56 +0300 Subject: [PATCH] package jest's: get name and display name from package `package.json` --- backend/jest.config.js | 4 +++- common/jest.config.js | 4 +++- frontend/jest.config.js | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/backend/jest.config.js b/backend/jest.config.js index ba4acbc7..45062664 100644 --- a/backend/jest.config.js +++ b/backend/jest.config.js @@ -1,4 +1,6 @@ -const name = 'backend'; +/* eslint-disable @typescript-eslint/no-var-requires */ + +const name = require('./package.json').name; module.exports = { name, diff --git a/common/jest.config.js b/common/jest.config.js index dbd62a3f..adb594bf 100644 --- a/common/jest.config.js +++ b/common/jest.config.js @@ -1,4 +1,6 @@ -const name = 'common'; +/* eslint-disable @typescript-eslint/no-var-requires */ + +const name = require('./package.json').name; module.exports = { name, diff --git a/frontend/jest.config.js b/frontend/jest.config.js index ecf1305f..86467b9e 100644 --- a/frontend/jest.config.js +++ b/frontend/jest.config.js @@ -1,4 +1,6 @@ -const name = 'frontend'; +/* eslint-disable @typescript-eslint/no-var-requires */ + +const name = require('./package.json').name; module.exports = { name,