From 91262718093924a9bd33b5f51f6e0b970077151c Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Tue, 2 Apr 2019 15:48:12 -0700 Subject: (bug) Import react in test --- src/use-sunlight.test.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/use-sunlight.test.js b/src/use-sunlight.test.js index a4f4719..e5708f2 100644 --- a/src/use-sunlight.test.js +++ b/src/use-sunlight.test.js @@ -1,4 +1,9 @@ import { computeLightLevel } from './use-sunlight' +// TODO figure out why this is required +// (I'm assuming some transpiler magic +// makes this "required") +// eslint-disable-next-line +import React from 'react' // Test the calculations used in the hook. // Not sure if it's worth testing the public hook -- cgit v1.2.3