diff --git a/jest.config.js b/jest.config.js
index b8e4f7ed6aa76..d76eb0848daf2 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -45,4 +45,5 @@ module.exports = {
},
collectCoverageFrom: coverageDirs,
reporters: [`default`].concat(useCoverage ? `jest-junit` : []),
+ testEnvironment: `jest-environment-jsdom-fourteen`,
}
diff --git a/package.json b/package.json
index 28b56e8c12851..3b35648b48f97 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"husky": "1.1.1",
"jest": "^24.0.0",
"jest-cli": "^24.0.0",
+ "jest-environment-jsdom-fourteen": "^0.1.0",
"jest-junit": "^6.1.0",
"jest-serializer-path": "^0.1.15",
"lerna": "^3.10.7",
diff --git a/packages/gatsby-image/src/__tests__/__snapshots__/index.js.snap b/packages/gatsby-image/src/__tests__/__snapshots__/index.js.snap
index a58084a6eed18..dde4e41d40041 100644
--- a/packages/gatsby-image/src/__tests__/__snapshots__/index.js.snap
+++ b/packages/gatsby-image/src/__tests__/__snapshots__/index.js.snap
@@ -7,14 +7,14 @@ exports[` should render fixed size images 1`] = `
style="position: relative; overflow: hidden; display: inline; width: 100px; height: 100px;"
>