From eb01fb51da5a0eb74c7fb394b57c30ba08c834cb Mon Sep 17 00:00:00 2001 From: Glen Cheney Date: Mon, 31 May 2021 10:14:33 -0700 Subject: [PATCH] Use jsdom test env --- jest.config.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/jest.config.js b/jest.config.js index d27210d..1d8f049 100644 --- a/jest.config.js +++ b/jest.config.js @@ -6,21 +6,14 @@ module.exports = { coverageDirectory: 'coverage', // An array of regexp pattern strings used to skip coverage collection - coveragePathIgnorePatterns: [ - '/node_modules/', - '/test/', - ], + coveragePathIgnorePatterns: ['/node_modules/', '/test/'], // A list of reporter names that Jest uses when writing coverage reports - coverageReporters: [ - 'text', - 'lcov', - ], + coverageReporters: ['text', 'lcov'], // An array of regexp pattern strings that are matched against all test paths, // matched tests are skipped - testPathIgnorePatterns: [ - '/gulp/', - '/node_modules/', - ], + testPathIgnorePatterns: ['/gulp/', '/node_modules/'], + + testEnvironment: 'jsdom', };