From 0b7e94d40e02ca5762fa88bd451a5cd140a74923 Mon Sep 17 00:00:00 2001 From: Nicolas DUBIEN Date: Fri, 22 Feb 2019 00:39:46 +0100 Subject: [PATCH] Adapt Jest configuration for Node 6 --- jest.e2e.config.js | 5 ++--- jest.unit.config.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/jest.e2e.config.js b/jest.e2e.config.js index 16df068a353..05553dd26e9 100644 --- a/jest.e2e.config.js +++ b/jest.e2e.config.js @@ -1,6 +1,5 @@ const conf = require('./jest.config'); -module.exports = { - ...conf, +module.exports = Object.assign(conf, { testMatch: ['/test/e2e/**/*.spec.ts'] -}; +}); diff --git a/jest.unit.config.js b/jest.unit.config.js index 19cd0998411..cfc560909f7 100644 --- a/jest.unit.config.js +++ b/jest.unit.config.js @@ -1,8 +1,7 @@ const conf = require('./jest.config'); -module.exports = { - ...conf, +module.exports = Object.assign(conf, { testMatch: ['/test/unit/**/*.spec.ts'], coverageDirectory: 'coverage', coveragePathIgnorePatterns: ['/lib/', '/test/', '/node_modules/'] -}; +});