diff --git a/package.json b/package.json index dba373b..3fd7e9a 100644 --- a/package.json +++ b/package.json @@ -55,9 +55,10 @@ "devDependencies": { "@babel/core": "^7.2.0", "@babel/node": "^7.2.0", + "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.2.0", "@svgr/webpack": "^4.1.0", - "ava": "^0.25.0", + "ava": "^1.0.1", "babel-eslint": "^10.0.1", "chrome-launcher": "^0.10.5", "eslint": "^5.10.0", diff --git a/scripts/lighthouse.test.js b/scripts/lighthouse.test.js index 7be262a..ceca638 100644 --- a/scripts/lighthouse.test.js +++ b/scripts/lighthouse.test.js @@ -1,5 +1,6 @@ +import '@babel/polyfill' import * as chromeLauncher from 'chrome-launcher' -import { test } from 'ava' +import test from 'ava' import lighthouse from 'lighthouse' import { siteMetadata } from '../gatsby-config'