Using Qunit with Foundation 6

Using Qunit with Foundation 6

I'm trying to use Qunit with a Foundation 6 (latest version) project, but not sure how to do it. I tried to import it like I've done with other plugins but I get errors. I try the import like this: 

import QUnit from 'qunitjs';

But I get this error:

Uncaught TypeError: Cannot use 'in' operator to search for 'default' in undefined

Is it not possible to use it in such a project or am I just doing something wrong?