Skip to content

Commit

Permalink
package jest's: get name and display name from package package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
starikcetin committed Feb 28, 2021
1 parent ff3614e commit 2318940
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion backend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const name = 'backend';
/* eslint-disable @typescript-eslint/no-var-requires */

const name = require('./package.json').name;

module.exports = {
name,
Expand Down
4 changes: 3 additions & 1 deletion common/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const name = 'common';
/* eslint-disable @typescript-eslint/no-var-requires */

const name = require('./package.json').name;

module.exports = {
name,
Expand Down
4 changes: 3 additions & 1 deletion frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const name = 'frontend';
/* eslint-disable @typescript-eslint/no-var-requires */

const name = require('./package.json').name;

module.exports = {
name,
Expand Down

0 comments on commit 2318940

Please sign in to comment.