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', }; diff --git a/package.json b/package.json index 522459a..5eb6728 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "gulp-postcss": "^9.0.0", "gulp-sass": "^4.0.0", "gulp-shell": "^0.8.0", - "jest": "^26.1.0", + "jest": "^27.0.3", "postcss": "^8.2.8", "rollup": "^2.2.0", "rollup-plugin-terser": "^7.0.0",