From 7242a98adb3422c230c763ddb2be8f3e4f03c9eb Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 30 May 2019 19:31:41 +0200 Subject: [PATCH] Moving jest config out of package.json to facilitate different jest configurations for unit tests and e2e tests --- jest.config.js | 9 +++++++++ package.json | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 jest.config.js diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 000000000..c24a3fd0c --- /dev/null +++ b/jest.config.js @@ -0,0 +1,9 @@ +module.exports = { + transform: { + '^.+\\.jsx?$': './transformer.js' + }, + transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib).*\\.js'], + moduleNameMapper: { + '\\.(css|scss)$': 'identity-obj-proxy' + } +} diff --git a/package.json b/package.json index 0171d3b3b..0d729906e 100644 --- a/package.json +++ b/package.json @@ -80,17 +80,6 @@ "dist", "src" ], - "jest": { - "transform": { - "^.+\\.jsx?$": "./transformer.js" - }, - "transformIgnorePatterns": [ - "/node_modules/(?!dagre-d3-renderer/lib).*\\.js" - ], - "moduleNameMapper": { - "\\.(css|scss)$": "identity-obj-proxy" - } - }, "yarn-upgrade-all": { "ignore": [ "babel-core"