From 287229602872640e177bfef07113c73f84d6d862 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 15 Dec 2018 17:51:46 +0100 Subject: [PATCH] fix ava tests --- package.json | 1 + scripts/lighthouse.test.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index dea5e74..3fd7e9a 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "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": "^1.0.1", 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'