From 4194399690c20639af5e63e6ae2cf53e2c70cd02 Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Tue, 24 Sep 2019 13:36:17 -0400 Subject: [PATCH] Use 'setupFilesAfterEnv' instead of the (deprecated) 'setupTestFrameworkScriptFile' --- jest.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index d9da1e0e602..9a1b0e31b34 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,6 @@ module.exports = { cacheDirectory: '.test', collectCoverage: true, - collectCoverageFrom: [ - 'src/*.js' - ], - setupTestFrameworkScriptFile: '/src/utils/test-matchers.js' + collectCoverageFrom: ['src/*.js'], + setupFilesAfterEnv: ['/src/utils/test-matchers.js'] }