Use jsdom test env

pull/352/head
Glen Cheney 3 years ago
parent bc6da3c8d8
commit eb01fb51da

@ -6,21 +6,14 @@ module.exports = {
coverageDirectory: 'coverage', coverageDirectory: 'coverage',
// An array of regexp pattern strings used to skip coverage collection // An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: ['/node_modules/', '/test/'],
'/node_modules/',
'/test/',
],
// A list of reporter names that Jest uses when writing coverage reports // A list of reporter names that Jest uses when writing coverage reports
coverageReporters: [ coverageReporters: ['text', 'lcov'],
'text',
'lcov',
],
// An array of regexp pattern strings that are matched against all test paths, // An array of regexp pattern strings that are matched against all test paths,
// matched tests are skipped // matched tests are skipped
testPathIgnorePatterns: [ testPathIgnorePatterns: ['<rootDir>/gulp/', '/node_modules/'],
'<rootDir>/gulp/',
'/node_modules/', testEnvironment: 'jsdom',
],
}; };

Loading…
Cancel
Save